1

Topic: LDAP Replication

==== Required information ====
- iRedMail version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Linux/BSD distribution name and version:
- Related log if you're reporting an issue:
======== Required information ====
- iRedMail version: 0.8.6
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Linux/BSD distribution name and version: Debian
- Related log if you're reporting an issue: /var/log/openldap.log
====

I receive the following in the openldap.log when trying to restart slaps service on the slave node:

May  2 09:52:41 mail2 slapd[7201]: @(#) $OpenLDAP: slapd  (Apr 23 2013 12:16:04) $#012#011root@lupin:/tmp/buildd/openldap-2.4.31/debian/build/servers/slapd

the service will stop but fails on starting.

Here is the code from slapd.conf on the slave server:

database    bdb
suffix      dc=mydomain,dc=com
rootdn      dc=mydomain,dc=com
directory   /var/lib/ldap/mydomain.com
index       objectclass,entryCSN,entryUUID eq

rootdn      cn=user,dc=mydomain,dc=com
rootpw      secret

sizelimit   10000
cachesize   10000

syncrepl rid=101
        provider=ldap://192.168.1.1
        type=RefreshandPersist
        interval:00:01:00:00"
        retry="5 5 300 +"
        searchbase="dc=mydomain,dc=com"
        filter="(objectClass)"
        scope=sub
        attrs="*,+"
        bindmethod=simple
        binddn="cn=user,dc=mydomain,dc=com"
        credentials=<secret>

and here is the slapd.conf code from the master:

database    bdb
suffix      dc=mydomain,dc=com
checkpoint  128 5
directory   /var/lib/ldap/mydomain.com

rootdn      cn=user,dc=mydomain,dc=com
rootpw      secret

sizelimit   10000
cachesize   10000

### for LDAP replication
###
moduleload syncprov
index entryCSN,entryUUID eq
overlay syncprov
syncprov-checkpoint 100 10
syncprov-sessionlog 100

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: LDAP Replication

jon.hoffart wrote:

the service will stop but fails on starting.

You have to increase log level in slapd.conf to see what the problem is.

loglevel 256

Then restart OpenLDAP service and check its log file.

3

Re: LDAP Replication

ZhangHuangbin wrote:

You have to increase log level in slapd.conf to see what the problem is.

loglevel 256

Then restart OpenLDAP service and check its log file.


Here is the contents of the log file after changing the log level in slaps.conf

May  5 09:06:10 mail2 slapd[17603]: @(#) $OpenLDAP: slapd  (Apr 23 2013 12:16:04) $#012#011root@lupin:/tmp/buildd/openldap-2.4.31/debian/build/servers/slapd
May  5 09:06:10 mail2 slapd[17603]: /etc/ldap/slapd.conf: line 189: Error: parse_syncrepl_line: unable to parse "interval:00:01:00:00 retry=5"#012.
May  5 09:06:10 mail2 slapd[17603]: failed to add syncinfo
May  5 09:06:10 mail2 slapd[17603]: slapd stopped.
May  5 09:06:10 mail2 slapd[17603]: connections_destroy: nothing to destroy.

4

Re: LDAP Replication

After posting last time I realized I had a parsing error I corrected that but I am still receiving and error on the slave when trying to start slapd.

This is what the openldap.log file shows when i try a restart on the slapd service:

May  6 14:32:34 mail2 slapd[22187]: @(#) $OpenLDAP: slapd  (Apr 23 2013 12:16:04) $#012#011root@lupin:/tmp/buildd/openldap-2.4.31/debian/build/servers/slapd
May  6 14:32:34 mail2 slapd[22187]: slapd stopped.
May  6 14:32:34 mail2 slapd[22187]: connections_destroy: nothing to destroy.


any  ideas on where I went  wrong ??

5

Re: LDAP Replication

Please set 'loglevel -1' and try again.

6

Re: LDAP Replication

Still new to LDAP so i don't know what is being stated in the log once the log level is set to -1. here is a copy of the log:

May  8 13:31:02 mail2 slapd[29679]: @(#) $OpenLDAP: slapd  (Apr 23 2013 12:16:04) $#012#011root@lupin:/tmp/buildd/openldap-2.4.31/debian/build/servers/slapd
May  8 13:31:02 mail2 slapd[29679]: line 68 (access to attrs="userPassword,mailForwardingAddress,storageBaseDirectory,homeDirectory,mailMessageStore"    by anonymous    auth    by self         write    by dn.exact="cn=vmail,dc=campus,dc=local"   read    by dn.exact="cn=vmailadmin,dc=campus,dc=local"  write    by users        none)
May  8 13:31:02 mail2 slapd[29679]: >>> dnNormalize: <cn=vmail,dc=campus,dc=local>
May  8 13:31:02 mail2 slapd[29679]: <<< dnNormalize: <cn=vmail,dc=campus,dc=local>
May  8 13:31:02 mail2 slapd[29679]: >>> dnNormalize: <cn=vmailadmin,dc=campus,dc=local>
May  8 13:31:02 mail2 slapd[29679]: <<< dnNormalize: <cn=vmailadmin,dc=campus,dc=local>
May  8 13:31:02 mail2 slapd[29679]: line 76 (access to attrs="cn,sn,gn,givenName,telephoneNumber"    by anonymous    auth    by self         write    by dn.exact="cn=vmail,dc=campus,dc=local"   read    by dn.exact="cn=vmailadmin,dc=campus,dc=local"  write    by users        read)
May  8 13:31:02 mail2 slapd[29679]: >>> dnNormalize: <cn=vmail,dc=campus,dc=local>
May  8 13:31:02 mail2 slapd[29679]: <<< dnNormalize: <cn=vmail,dc=campus,dc=local>
May  8 13:31:02 mail2 slapd[29679]: >>> dnNormalize: <cn=vmailadmin,dc=campus,dc=local>
May  8 13:31:02 mail2 slapd[29679]: <<< dnNormalize: <cn=vmailadmin,dc=campus,dc=local>
May  8 13:31:02 mail2 slapd[29679]: line 84 (access to attrs="objectclass,domainName,mtaTransport,enabledService,domainSenderBccAddress,domainRecipientBccAddress,domainBackupMX,domainMaxQuotaSize,domainMaxUserNumber"    by anonymous    auth    by self         read    by dn.exact="cn=vmail,dc=campus,dc=local"   read    by dn.exact="cn=vmailadmin,dc=campus,dc=local"  write    by users        read)
May  8 13:31:02 mail2 slapd[29679]: >>> dnNormalize: <cn=vmail,dc=campus,dc=local>
May  8 13:31:02 mail2 slapd[29679]: <<< dnNormalize: <cn=vmail,dc=campus,dc=local>
May  8 13:31:02 mail2 slapd[29679]: >>> dnNormalize: <cn=vmailadmin,dc=campus,dc=local>
May  8 13:31:02 mail2 slapd[29679]: <<< dnNormalize: <cn=vmailadmin,dc=campus,dc=local>
May  8 13:31:02 mail2 slapd[29679]: line 91 (access to attrs="domainAdmin,domainGlobalAdmin,domainSenderBccAddress,domainRecipientBccAddress"    by anonymous    auth    by self         read    by dn.exact="cn=vmail,dc=campus,dc=local"   read    by dn.exact="cn=vmailadmin,dc=campus,dc=local"  write    by users        none)
May  8 13:31:02 mail2 slapd[29679]: >>> dnNormalize: <cn=vmail,dc=campus,dc=local>
May  8 13:31:02 mail2 slapd[29679]: <<< dnNormalize: <cn=vmail,dc=campus,dc=local>
May  8 13:31:02 mail2 slapd[29679]: >>> dnNormalize: <cn=vmailadmin,dc=campus,dc=local>
May  8 13:31:02 mail2 slapd[29679]: <<< dnNormalize: <cn=vmailadmin,dc=campus,dc=local>
May  8 13:31:02 mail2 slapd[29679]: line 99 (access to attrs="employeeNumber,mail,accountStatus,userSenderBccAddress,userRecipientBccAddress,mailQuota,backupMailAddress,shadowAddress,memberOfGroup"    by anonymous    auth    by self         read    by dn.exact="cn=vmail,dc=campus,dc=local"   read    by dn.exact="cn=vmailadmin,dc=campus,dc=local"  write    by users        read)
May  8 13:31:02 mail2 slapd[29679]: >>> dnNormalize: <cn=vmail,dc=campus,dc=local>
May  8 13:31:02 mail2 slapd[29679]: <<< dnNormalize: <cn=vmail,dc=campus,dc=local>
May  8 13:31:02 mail2 slapd[29679]: >>> dnNormalize: <cn=vmailadmin,dc=campus,dc=local>
May  8 13:31:02 mail2 slapd[29679]: <<< dnNormalize: <cn=vmailadmin,dc=campus,dc=local>
May  8 13:31:02 mail2 slapd[29679]: line 108 (access to dn="cn=vmail,dc=campus,dc=local"    by anonymous                    auth    by self                         write    by dn.exact="cn=vmailadmin,dc=campus,dc=local"  write    by users                        none)
May  8 13:31:02 mail2 slapd[29679]: >>> dnNormalize: <cn=vmail,dc=campus,dc=local>
May  8 13:31:02 mail2 slapd[29679]: <<< dnNormalize: <cn=vmail,dc=campus,dc=local>
May  8 13:31:02 mail2 slapd[29679]: >>> dnNormalize: <cn=vmailadmin,dc=campus,dc=local>
May  8 13:31:02 mail2 slapd[29679]: <<< dnNormalize: <cn=vmailadmin,dc=campus,dc=local>
May  8 13:31:02 mail2 slapd[29679]: line 113 (access to dn="cn=vmailadmin,dc=campus,dc=local"    by anonymous                    auth    by self                         write    by users                        none)
May  8 13:31:02 mail2 slapd[29679]: >>> dnNormalize: <cn=vmailadmin,dc=campus,dc=local>
May  8 13:31:02 mail2 slapd[29679]: <<< dnNormalize: <cn=vmailadmin,dc=campus,dc=local>
May  8 13:31:02 mail2 slapd[29679]: line 126 (access to dn.regex="domainName=([^,]+),o=domains,dc=campus,dc=local$"    by anonymous                    auth    by self                         write    by dn.exact="cn=vmail,dc=campus,dc=local"   read    by dn.exact="cn=vmailadmin,dc=campus,dc=local"  write    by dn.regex="mail=[^,]+@$1,o=domainAdmins,dc=campus,dc=local$" write    by dn.regex="mail=[^,]+@$1,ou=Users,domainName=$1,o=domains,dc=campus,dc=local$" read    by users                        none)
May  8 13:31:02 mail2 slapd[29679]: >>> dnNormalize: <cn=vmail,dc=campus,dc=local>
May  8 13:31:02 mail2 slapd[29679]: <<< dnNormalize: <cn=vmail,dc=campus,dc=local>
May  8 13:31:02 mail2 slapd[29679]: >>> dnNormalize: <cn=vmailadmin,dc=campus,dc=local>
May  8 13:31:02 mail2 slapd[29679]: <<< dnNormalize: <cn=vmailadmin,dc=campus,dc=local>
May  8 13:31:02 mail2 slapd[29679]: line 137 (access to dn.subtree="o=domains,dc=campus,dc=local"    by anonymous                    auth    by self                         write    by dn.exact="cn=vmail,dc=campus,dc=local"   read    by dn.exact="cn=vmailadmin,dc=campus,dc=local"  write    by dn.regex="mail=[^,]+,ou=Users,domainName=$1,o=domains,dc=campus,dc=local$" read    by users                        read)
May  8 13:31:02 mail2 slapd[29679]: >>> dnNormalize: <o=domains,dc=campus,dc=local>
May  8 13:31:02 mail2 slapd[29679]: <<< dnNormalize: <o=domains,dc=campus,dc=local>
May  8 13:31:02 mail2 slapd[29679]: >>> dnNormalize: <cn=vmail,dc=campus,dc=local>
May  8 13:31:02 mail2 slapd[29679]: <<< dnNormalize: <cn=vmail,dc=campus,dc=local>
May  8 13:31:02 mail2 slapd[29679]: >>> dnNormalize: <cn=vmailadmin,dc=campus,dc=local>
May  8 13:31:02 mail2 slapd[29679]: <<< dnNormalize: <cn=vmailadmin,dc=campus,dc=local>
May  8 13:31:02 mail2 slapd[29679]: line 144 (access to dn.subtree="o=domainAdmins,dc=campus,dc=local"    by anonymous                    auth    by self                         write    by dn.exact="cn=vmail,dc=campus,dc=local"   read    by dn.exact="cn=vmailadmin,dc=campus,dc=local"  write    by users                        none)
May  8 13:31:02 mail2 slapd[29679]: >>> dnNormalize: <o=domainAdmins,dc=campus,dc=local>
May  8 13:31:02 mail2 slapd[29679]: <<< dnNormalize: <o=domainadmins,dc=campus,dc=local>
May  8 13:31:02 mail2 slapd[29679]: >>> dnNormalize: <cn=vmail,dc=campus,dc=local>
May  8 13:31:02 mail2 slapd[29679]: <<< dnNormalize: <cn=vmail,dc=campus,dc=local>
May  8 13:31:02 mail2 slapd[29679]: >>> dnNormalize: <cn=vmailadmin,dc=campus,dc=local>
May  8 13:31:02 mail2 slapd[29679]: <<< dnNormalize: <cn=vmailadmin,dc=campus,dc=local>
May  8 13:31:02 mail2 slapd[29679]: line 152 (access to dn.regex="cn=[^,]+,dc=campus,dc=local"    by anonymous                    auth    by self                         write   by users                        none)
May  8 13:31:02 mail2 slapd[29679]: line 160 (access to *    by anonymous                    auth    by self                         write    by users                        read)
May  8 13:31:02 mail2 slapd[29679]: line 166 (database    bdb)
May  8 13:31:02 mail2 slapd[29679]: bdb_db_init: Initializing BDB database
May  8 13:31:02 mail2 slapd[29679]: line 167 (suffix      dc=campus,dc=local)
May  8 13:31:02 mail2 slapd[29679]: >>> dnPrettyNormal: <dc=campus,dc=local>
May  8 13:31:02 mail2 slapd[29679]: <<< dnPrettyNormal: <dc=campus,dc=local>, <dc=campus,dc=local>
May  8 13:31:02 mail2 slapd[29679]: line 168 (rootdn      dc=campus,dc=local)
May  8 13:31:02 mail2 slapd[29679]: >>> dnPrettyNormal: <dc=campus,dc=local>
May  8 13:31:02 mail2 slapd[29679]: <<< dnPrettyNormal: <dc=campus,dc=local>, <dc=campus,dc=local>
May  8 13:31:02 mail2 slapd[29679]: line 169 (directory   /var/lib/ldap/campus.local)
May  8 13:31:02 mail2 slapd[29679]: line 170 (index#011    objectclass,entryCSN,entryUUID eq)
May  8 13:31:02 mail2 slapd[29679]: index objectClass 0x0004
May  8 13:31:02 mail2 slapd[29679]: index entryCSN 0x0004
May  8 13:31:02 mail2 slapd[29679]: index entryUUID 0x0004
May  8 13:31:02 mail2 slapd[29679]: line 172 (rootdn      cn=Manager,dc=campus,dc=local)
May  8 13:31:02 mail2 slapd[29679]: >>> dnPrettyNormal: <cn=Manager,dc=campus,dc=local>
May  8 13:31:02 mail2 slapd[29679]: <<< dnPrettyNormal: <cn=Manager,dc=campus,dc=local>, <cn=manager,dc=campus,dc=local>
May  8 13:31:02 mail2 slapd[29679]: line 173 (rootpw ***)
May  8 13:31:02 mail2 slapd[29679]: line 175 (sizelimit   10000)
May  8 13:31:02 mail2 slapd[29679]: line 176 (cachesize   10000)
May  8 13:31:02 mail2 slapd[29679]: line 189 (syncrepl ***)
May  8 13:31:02 mail2 slapd[29679]: >>> dnNormalize: <dc=campus,dc=local>
May  8 13:31:02 mail2 slapd[29679]: <<< dnNormalize: <dc=campus,dc=local>
May  8 13:31:02 mail2 slapd[29679]: >>> dnNormalize: <cn=Manager,dc=campus,dc=local>
May  8 13:31:02 mail2 slapd[29679]: <<< dnNormalize: <cn=manager,dc=campus,dc=local>
May  8 13:31:02 mail2 slapd[29679]: str2filter "(objectClass=*)"
May  8 13:31:02 mail2 slapd[29679]: begin get_filter
May  8 13:31:02 mail2 slapd[29679]: PRESENT
May  8 13:31:02 mail2 slapd[29679]: end get_filter 0
May  8 13:31:02 mail2 slapd[29679]: Config: ** successfully added syncrepl rid=101 "ldap://192.168.179.251"
May  8 13:31:02 mail2 slapd[29679]: line 203 (checkpoint  128 5)
May  8 13:31:02 mail2 slapd[29679]: line 206 (mode        0700)
May  8 13:31:02 mail2 slapd[29679]: line 211 (index objectClass                                   eq,pres)
May  8 13:31:02 mail2 slapd[29679]: index objectClass 0x0006
May  8 13:31:02 mail2 slapd[29679]: slapd destroy: freeing system resources.
May  8 13:31:02 mail2 slapd[29679]: syncinfo_free: rid=101
May  8 13:31:02 mail2 slapd[29679]: slapd stopped.
May  8 13:31:02 mail2 slapd[29679]: connections_destroy: nothing to destroy.

7

Re: LDAP Replication

It doesn't mention any error message. Could you please try again with below commands:

# apt-get install strace
# strace -sS -fF /usr/sbin/slapd -h 'ldap:/// ldapi:///' -g openldap -u openldap -f /etc/ldap/slapd.conf

Then paste full output of above command here.

8

Re: LDAP Replication

here is the output of the command:

root@mail2:~# strace -sS -fF /usr/sbin/slapd -h 'ldap:/// ldapi:///' -g openldap -u openldap -f /etc/ldap/slapd.conf
execve("/usr/sbin/slapd", [...], [/* 14 vars */]) = 0
brk(0)                                  = 0x7f0f03ec0000
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f0f02bb7000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=18221, ...}) = 0
mmap(NULL, 18221, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f0f02bb2000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2", O_RDONLY) = 3
read(3, ""..., 832)                     = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=323088, ...}) = 0
mmap(NULL, 2427560, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f0f02749000
mprotect(0x7f0f02795000, 2097152, PROT_NONE) = 0
mmap(0x7f0f02995000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x4c000) = 0x7f0f02995000
mmap(0x7f0f02998000, 6824, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f0f02998000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/usr/lib/x86_64-linux-gnu/liblber-2.4.so.2", O_RDONLY) = 3
read(3, ""..., 832)                     = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=59640, ...}) = 0
mmap(NULL, 2154920, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f0f0253a000
mprotect(0x7f0f02548000, 2093056, PROT_NONE) = 0
mmap(0x7f0f02747000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xd000) = 0x7f0f02747000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/usr/lib/x86_64-linux-gnu/libdb-5.1.so", O_RDONLY) = 3
read(3, ""..., 832)                     = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=1585496, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f0f02bb1000
mmap(NULL, 3680528, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f0f021b7000
mprotect(0x7f0f02331000, 2097152, PROT_NONE) = 0
mmap(0x7f0f02531000, 36864, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x17a000) = 0x7f0f02531000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/usr/lib/x86_64-linux-gnu/libodbc.so.1", O_RDONLY) = 3
read(3, ""..., 832)                     = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=420624, ...}) = 0
mmap(NULL, 2519552, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f0f01f4f000
mprotect(0x7f0f01faf000, 2093056, PROT_NONE) = 0
mmap(0x7f0f021ae000, 32768, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x5f000) = 0x7f0f021ae000
mmap(0x7f0f021b6000, 512, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f0f021b6000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/usr/lib/libslp.so.1", O_RDONLY)  = 3
read(3, ""..., 832)                     = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=73712, ...}) = 0
mmap(NULL, 2169144, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f0f01d3d000
mprotect(0x7f0f01d4e000, 2097152, PROT_NONE) = 0
mmap(0x7f0f01f4e000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x11000) = 0x7f0f01f4e000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/usr/lib/x86_64-linux-gnu/libsasl2.so.2", O_RDONLY) = 3
read(3, ""..., 832)                     = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=109360, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f0f02bb0000
mmap(NULL, 2204624, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f0f01b22000
mprotect(0x7f0f01b3c000, 2093056, PROT_NONE) = 0
mmap(0x7f0f01d3b000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x19000) = 0x7f0f01d3b000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/usr/lib/x86_64-linux-gnu/libgnutls.so.26", O_RDONLY) = 3
read(3, ""..., 832)                     = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=785552, ...}) = 0
mmap(NULL, 2882728, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f0f01862000
mprotect(0x7f0f0191b000, 2093056, PROT_NONE) = 0
mmap(0x7f0f01b1a000, 32768, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xb8000) = 0x7f0f01b1a000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libgcrypt.so.11", O_RDONLY) = 3
read(3, ""..., 832)                     = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=516128, ...}) = 0
mmap(NULL, 2612480, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f0f015e4000
mprotect(0x7f0f0165e000, 2097152, PROT_NONE) = 0
mmap(0x7f0f0185e000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x7a000) = 0x7f0f0185e000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libcrypt.so.1", O_RDONLY) = 3
read(3, ""..., 832)                     = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=35104, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f0f02baf000
mmap(NULL, 2318784, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f0f013ad000
mprotect(0x7f0f013b5000, 2093056, PROT_NONE) = 0
mmap(0x7f0f015b4000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x7000) = 0x7f0f015b4000
mmap(0x7f0f015b6000, 184768, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f0f015b6000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libresolv.so.2", O_RDONLY) = 3
read(3, ""..., 832)                     = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=80712, ...}) = 0
mmap(NULL, 2185864, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f0f01197000
mprotect(0x7f0f011aa000, 2093056, PROT_NONE) = 0
mmap(0x7f0f013a9000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x12000) = 0x7f0f013a9000
mmap(0x7f0f013ab000, 6792, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f0f013ab000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/usr/lib/x86_64-linux-gnu/libslapi-2.4.so.2", O_RDONLY) = 3
read(3, ""..., 832)                     = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=129384, ...}) = 0
mmap(NULL, 2225464, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f0f00f77000
mprotect(0x7f0f00f95000, 2097152, PROT_NONE) = 0
mmap(0x7f0f01195000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1e000) = 0x7f0f01195000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/usr/lib/x86_64-linux-gnu/libltdl.so.7", O_RDONLY) = 3
read(3, ""..., 832)                     = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=37160, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f0f02bae000
mmap(NULL, 2132440, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f0f00d6e000
mprotect(0x7f0f00d77000, 2093056, PROT_NONE) = 0
mmap(0x7f0f00f76000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x8000) = 0x7f0f00f76000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libwrap.so.0", O_RDONLY) = 3
read(3, ""..., 832)                     = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=40656, ...}) = 0
mmap(NULL, 2138144, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f0f00b63000
mprotect(0x7f0f00b6c000, 2093056, PROT_NONE) = 0
mmap(0x7f0f00d6b000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x8000) = 0x7f0f00d6b000
mmap(0x7f0f00d6d000, 32, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f0f00d6d000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libpthread.so.0", O_RDONLY) = 3
read(3, ""..., 832)                     = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=131107, ...}) = 0
mmap(NULL, 2208672, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f0f00947000
mprotect(0x7f0f0095e000, 2093056, PROT_NONE) = 0
mmap(0x7f0f00b5d000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x16000) = 0x7f0f00b5d000
mmap(0x7f0f00b5f000, 13216, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f0f00b5f000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY) = 3
read(3, ""..., 832)                     = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=1599504, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f0f02bad000
mmap(NULL, 3713112, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f0f005bc000
mprotect(0x7f0f0073e000, 2093056, PROT_NONE) = 0
mmap(0x7f0f0093d000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x181000) = 0x7f0f0093d000
mmap(0x7f0f00942000, 18520, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f0f00942000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libnsl.so.1", O_RDONLY) = 3
read(3, ""..., 832)                     = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=89056, ...}) = 0
mmap(NULL, 2194128, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f0f003a4000
mprotect(0x7f0f003b9000, 2093056, PROT_NONE) = 0
mmap(0x7f0f005b8000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x14000) = 0x7f0f005b8000
mmap(0x7f0f005ba000, 6864, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f0f005ba000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libdl.so.2", O_RDONLY) = 3
read(3, ""..., 832)                     = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=14768, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f0f02bac000
mmap(NULL, 2109696, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f0f001a0000
mprotect(0x7f0f001a2000, 2097152, PROT_NONE) = 0
mmap(0x7f0f003a2000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x7f0f003a2000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/usr/lib/x86_64-linux-gnu/libtasn1.so.3", O_RDONLY) = 3
read(3, ""..., 832)                     = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=68064, ...}) = 0
mmap(NULL, 2163624, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f0efff8f000
mprotect(0x7f0efff9f000, 2093056, PROT_NONE) = 0
mmap(0x7f0f0019e000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xf000) = 0x7f0f0019e000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libz.so.1", O_RDONLY) = 3
read(3, ""..., 832)                     = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=92752, ...}) = 0
mmap(NULL, 2187792, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f0effd78000
mprotect(0x7f0effd8e000, 2093056, PROT_NONE) = 0
mmap(0x7f0efff8d000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x15000) = 0x7f0efff8d000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/usr/lib/x86_64-linux-gnu/libp11-kit.so.0", O_RDONLY) = 3
read(3, ""..., 832)                     = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=72808, ...}) = 0
mmap(NULL, 2168144, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f0effb66000
mprotect(0x7f0effb77000, 2093056, PROT_NONE) = 0
mmap(0x7f0effd76000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x10000) = 0x7f0effd76000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libgpg-error.so.0", O_RDONLY) = 3
read(3, ""..., 832)                     = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=14112, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f0f02bab000
mmap(NULL, 2109384, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f0eff963000
mprotect(0x7f0eff966000, 2093056, PROT_NONE) = 0
mmap(0x7f0effb65000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x7f0effb65000
close(3)                                = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f0f02baa000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f0f02ba9000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f0f02ba8000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f0f02ba7000
arch_prctl(ARCH_SET_FS, 0x7f0f02ba8700) = 0
mprotect(0x7f0effd76000, 4096, PROT_READ) = 0
mprotect(0x7f0efff8d000, 4096, PROT_READ) = 0
mprotect(0x7f0f0019e000, 4096, PROT_READ) = 0
mprotect(0x7f0f003a2000, 4096, PROT_READ) = 0
mprotect(0x7f0f005b8000, 4096, PROT_READ) = 0
mprotect(0x7f0f0093d000, 16384, PROT_READ) = 0
mprotect(0x7f0f00b5d000, 4096, PROT_READ) = 0
mprotect(0x7f0f00d6b000, 4096, PROT_READ) = 0
mprotect(0x7f0f01195000, 4096, PROT_READ) = 0
mprotect(0x7f0f013a9000, 4096, PROT_READ) = 0
mprotect(0x7f0f015b4000, 4096, PROT_READ) = 0
mprotect(0x7f0f0185e000, 4096, PROT_READ) = 0
mprotect(0x7f0f01b1a000, 24576, PROT_READ) = 0
mprotect(0x7f0f01d3b000, 4096, PROT_READ) = 0
mprotect(0x7f0f02531000, 24576, PROT_READ) = 0
mprotect(0x7f0f02747000, 4096, PROT_READ) = 0
mprotect(0x7f0f02995000, 8192, PROT_READ) = 0
mprotect(0x7f0f02bbc000, 1220608, PROT_READ|PROT_WRITE) = 0
mprotect(0x7f0f02bbc000, 1220608, PROT_READ|PROT_EXEC) = 0
mprotect(0x7f0f02ee6000, 16384, PROT_READ) = 0
mprotect(0x7f0f02bb9000, 4096, PROT_READ) = 0
munmap(0x7f0f02bb2000, 18221)           = 0
set_tid_address(0x7f0f02ba89d0)         = 458
set_robust_list(0x7f0f02ba89e0, 0x18)   = 0
futex(0x7fff5d265f0c, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 1, NULL, 7f0f02ba8700) = -1 EAGAIN (Resource temporarily unavailable)
rt_sigaction(SIGRTMIN, {0x7f0f0094cad0, [], SA_RESTORER|SA_SIGINFO, 0x7f0f00956030}, NULL, 8) = 0
rt_sigaction(SIGRT_1, {0x7f0f0094cb60, [], SA_RESTORER|SA_RESTART|SA_SIGINFO, 0x7f0f00956030}, NULL, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0
getrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM_INFINITY}) = 0
brk(0)                                  = 0x7f0f03ec0000
brk(0x7f0f03ee1000)                     = 0x7f0f03ee1000
uname({sys="Linux", node="mail2", ...}) = 0
open("/etc/resolv.conf", O_RDONLY)      = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=45, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f0f02bb6000
read(3, ""..., 4096)                    = 45
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x7f0f02bb6000, 4096)            = 0
socket(PF_FILE, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 3
connect(3, {sa_family=AF_FILE, path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
close(3)                                = 0
socket(PF_FILE, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 3
connect(3, {sa_family=AF_FILE, path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
close(3)                                = 0
open("/etc/nsswitch.conf", O_RDONLY)    = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=475, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f0f02bb6000
read(3, ""..., 4096)                    = 475
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x7f0f02bb6000, 4096)            = 0
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=18221, ...}) = 0
mmap(NULL, 18221, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f0f02bb2000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libnss_files.so.2", O_RDONLY) = 3
read(3, ""..., 832)                     = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=47616, ...}) = 0
mmap(NULL, 2143624, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f0eff757000
mprotect(0x7f0eff762000, 2093056, PROT_NONE) = 0
mmap(0x7f0eff961000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xa000) = 0x7f0eff961000
close(3)                                = 0
mprotect(0x7f0eff961000, 4096, PROT_READ) = 0
munmap(0x7f0f02bb2000, 18221)           = 0
open("/etc/host.conf", O_RDONLY)        = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=9, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f0f02bb6000
read(3, ""..., 4096)                    = 9
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x7f0f02bb6000, 4096)            = 0
futex(0x7f0f00945304, FUTEX_WAKE_PRIVATE, 2147483647) = 0
open("/etc/hosts", O_RDONLY|O_CLOEXEC)  = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=210, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f0f02bb6000
read(3, ""..., 4096)                    = 210
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x7f0f02bb6000, 4096)            = 0
open("/etc/ldap/ldap.conf", O_RDONLY)   = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=98, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f0f02bb6000
read(3, ""..., 4096)                    = 98
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x7f0f02bb6000, 4096)            = 0
geteuid()                               = 0
getuid()                                = 0
open("/root/ldaprc", O_RDONLY)          = -1 ENOENT (No such file or directory)
open("/root/.ldaprc", O_RDONLY)         = -1 ENOENT (No such file or directory)
open("ldaprc", O_RDONLY)                = -1 ENOENT (No such file or directory)
socket(PF_FILE, SOCK_DGRAM|SOCK_CLOEXEC, 0) = 3
connect(3, {sa_family=AF_FILE, path="/dev/log"}, 110) = 0
time([1399649642])                      = 1399649642
open("/etc/localtime", O_RDONLY)        = 4
fstat(4, {st_mode=S_IFREG|0644, st_size=2427, ...}) = 0
fstat(4, {st_mode=S_IFREG|0644, st_size=2427, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f0f02bb6000
read(4, ""..., 4096)                    = 2427
lseek(4, -1550, SEEK_CUR)               = 877
read(4, ""..., 4096)                    = 1550
close(4)                                = 0
munmap(0x7f0f02bb6000, 4096)            = 0
sendto(3, ""..., 148, MSG_NOSIGNAL, NULL, 0) = 148
uname({sys="Linux", node="mail2", ...}) = 0
stat("/etc/resolv.conf", {st_mode=S_IFREG|0644, st_size=45, ...}) = 0
open("/etc/resolv.conf", O_RDONLY)      = 4
fstat(4, {st_mode=S_IFREG|0644, st_size=45, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f0f02bb6000
read(4, ""..., 4096)                    = 45
read(4, "", 4096)                       = 0
close(4)                                = 0
munmap(0x7f0f02bb6000, 4096)            = 0
open("/etc/hosts", O_RDONLY|O_CLOEXEC)  = 4
fstat(4, {st_mode=S_IFREG|0644, st_size=210, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f0f02bb6000
read(4, ""..., 4096)                    = 210
read(4, "", 4096)                       = 0
close(4)                                = 0
munmap(0x7f0f02bb6000, 4096)            = 0
getrlimit(RLIMIT_NOFILE, {rlim_cur=1024, rlim_max=4*1024}) = 0
pipe([4, 5])                            = 0
fcntl(5, F_GETFL)                       = 0x1 (flags O_WRONLY)
fcntl(5, F_SETFL, O_WRONLY|O_NONBLOCK)  = 0
epoll_create(1024)                      = 6
socket(PF_NETLINK, SOCK_RAW, 0)         = 7
bind(7, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 0
getsockname(7, {sa_family=AF_NETLINK, pid=458, groups=00000000}, [12]) = 0
time(NULL)                              = 1399649642
sendto(7, ""..., 20, 0, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 20
recvmsg(7, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[...], msg_controllen=0, msg_flags=0}, 0) = 108
recvmsg(7, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[...], msg_controllen=0, msg_flags=0}, 0) = 128
recvmsg(7, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[...], msg_controllen=0, msg_flags=0}, 0) = 20
close(7)                                = 0
open("/etc/gai.conf", O_RDONLY)         = 7
fstat(7, {st_mode=S_IFREG|0644, st_size=2940, ...}) = 0
fstat(7, {st_mode=S_IFREG|0644, st_size=2940, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f0f02bb6000
read(7, ""..., 4096)                    = 2940
read(7, "", 4096)                       = 0
close(7)                                = 0
munmap(0x7f0f02bb6000, 4096)            = 0
futex(0x7f0f00943e24, FUTEX_WAKE_PRIVATE, 2147483647) = 0
socket(PF_INET6, SOCK_DGRAM, IPPROTO_IP) = 7
connect(7, {sa_family=AF_INET6, sin6_port=htons(389), inet_pton(AF_INET6, "::", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, 28) = 0
getsockname(7, {sa_family=AF_INET6, sin6_port=htons(36857), inet_pton(AF_INET6, "::1", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, [28]) = 0
connect(7, {sa_family=AF_UNSPEC, sa_data=""...}, 16) = 0
connect(7, {sa_family=AF_INET, sin_port=htons(389), sin_addr=inet_addr("0.0.0.0")}, 16) = 0
getsockname(7, {sa_family=AF_INET6, sin6_port=htons(46001), inet_pton(AF_INET6, "::ffff:127.0.0.1", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, [28]) = 0
close(7)                                = 0
socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 7
setsockopt(7, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0
bind(7, {sa_family=AF_INET, sin_port=htons(389), sin_addr=inet_addr("0.0.0.0")}, 16) = 0
socket(PF_INET6, SOCK_STREAM, IPPROTO_IP) = 8
setsockopt(8, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0
setsockopt(8, SOL_IPV6, IPV6_V6ONLY, [1], 4) = 0
bind(8, {sa_family=AF_INET6, sin6_port=htons(389), inet_pton(AF_INET6, "::", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, 28) = 0
socket(PF_FILE, SOCK_STREAM, 0)         = 9
unlink("/var/run/slapd/ldapi")          = 0
umask(0)                                = 022
bind(9, {sa_family=AF_FILE, path="/var/run/slapd/ldapi"}, 110) = 0
umask(022)                              = 0
socket(PF_FILE, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 10
connect(10, {sa_family=AF_FILE, path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
close(10)                               = 0
socket(PF_FILE, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 10
connect(10, {sa_family=AF_FILE, path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
close(10)                               = 0
open("/etc/ld.so.cache", O_RDONLY)      = 10
fstat(10, {st_mode=S_IFREG|0644, st_size=18221, ...}) = 0
mmap(NULL, 18221, PROT_READ, MAP_PRIVATE, 10, 0) = 0x7f0f02bb2000
close(10)                               = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libnss_compat.so.2", O_RDONLY) = 10
read(10, ""..., 832)                    = 832
fstat(10, {st_mode=S_IFREG|0644, st_size=31584, ...}) = 0
mmap(NULL, 2127048, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 10, 0) = 0x7f0eff54f000
mprotect(0x7f0eff556000, 2093056, PROT_NONE) = 0
mmap(0x7f0eff755000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 10, 0x6000) = 0x7f0eff755000
close(10)                               = 0
mprotect(0x7f0eff755000, 4096, PROT_READ) = 0
munmap(0x7f0f02bb2000, 18221)           = 0
open("/etc/ld.so.cache", O_RDONLY)      = 10
fstat(10, {st_mode=S_IFREG|0644, st_size=18221, ...}) = 0
mmap(NULL, 18221, PROT_READ, MAP_PRIVATE, 10, 0) = 0x7f0f02bb2000
close(10)                               = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libnss_nis.so.2", O_RDONLY) = 10
read(10, ""..., 832)                    = 832
fstat(10, {st_mode=S_IFREG|0644, st_size=43552, ...}) = 0
mmap(NULL, 2139320, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 10, 0) = 0x7f0eff344000
mprotect(0x7f0eff34e000, 2093056, PROT_NONE) = 0
mmap(0x7f0eff54d000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 10, 0x9000) = 0x7f0eff54d000
close(10)                               = 0
mprotect(0x7f0eff54d000, 4096, PROT_READ) = 0
munmap(0x7f0f02bb2000, 18221)           = 0
open("/etc/passwd", O_RDONLY|O_CLOEXEC) = 10
lseek(10, 0, SEEK_CUR)                  = 0
fstat(10, {st_mode=S_IFREG|0644, st_size=1653, ...}) = 0
mmap(NULL, 1653, PROT_READ, MAP_SHARED, 10, 0) = 0x7f0f02bb6000
lseek(10, 1653, SEEK_SET)               = 1653
munmap(0x7f0f02bb6000, 1653)            = 0
close(10)                               = 0
socket(PF_FILE, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 10
connect(10, {sa_family=AF_FILE, path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
close(10)                               = 0
socket(PF_FILE, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 10
connect(10, {sa_family=AF_FILE, path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
close(10)                               = 0
open("/etc/group", O_RDONLY|O_CLOEXEC)  = 10
lseek(10, 0, SEEK_CUR)                  = 0
fstat(10, {st_mode=S_IFREG|0644, st_size=814, ...}) = 0
mmap(NULL, 814, PROT_READ, MAP_SHARED, 10, 0) = 0x7f0f02bb6000
lseek(10, 814, SEEK_SET)                = 814
munmap(0x7f0f02bb6000, 814)             = 0
close(10)                               = 0
getuid()                                = 0
open("/proc/sys/kernel/ngroups_max", O_RDONLY) = 10
read(10, ""..., 31)                     = 6
close(10)                               = 0
open("/etc/group", O_RDONLY|O_CLOEXEC)  = 10
lseek(10, 0, SEEK_CUR)                  = 0
fstat(10, {st_mode=S_IFREG|0644, st_size=814, ...}) = 0
mmap(NULL, 814, PROT_READ, MAP_SHARED, 10, 0) = 0x7f0f02bb6000
lseek(10, 814, SEEK_SET)                = 814
fstat(10, {st_mode=S_IFREG|0644, st_size=814, ...}) = 0
munmap(0x7f0f02bb6000, 814)             = 0
close(10)                               = 0
setgroups(2, [...])                     = 0
setgid(111)                             = 0
setresgid(-1, 111, -1)                  = 0
setuid(107)                             = 0
setresuid(-1, 107, -1)                  = 0
brk(0x7f0f03f02000)                     = 0x7f0f03f02000
open("/etc/ldap/sasl2/slapd.conf", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/sasl2/slapd.conf", O_RDONLY) = -1 ENOENT (No such file or directory)
getuid()                                = 107
geteuid()                               = 107
getgid()                                = 111
getegid()                               = 111
open("/usr/lib/x86_64-linux-gnu/sasl2", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 10
getdents(10, /* 23 entries */, 32768)   = 864
futex(0x7f0f003a30ec, FUTEX_WAKE_PRIVATE, 2147483647) = 0
open("/usr/lib/x86_64-linux-gnu/sasl2/libanonymous.so", O_RDONLY) = 11
read(11, ""..., 832)                    = 832
fstat(11, {st_mode=S_IFREG|0644, st_size=18584, ...}) = 0
mmap(NULL, 2113800, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 11, 0) = 0x7f0eff13f000
mprotect(0x7f0eff143000, 2093056, PROT_NONE) = 0
mmap(0x7f0eff342000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 11, 0x3000) = 0x7f0eff342000
close(11)                               = 0
mprotect(0x7f0eff342000, 4096, PROT_READ) = 0
open("/usr/lib/x86_64-linux-gnu/sasl2/libcrammd5.so", O_RDONLY) = 11
read(11, ""..., 832)                    = 832
fstat(11, {st_mode=S_IFREG|0644, st_size=22680, ...}) = 0
mmap(NULL, 2117896, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 11, 0) = 0x7f0efef39000
mprotect(0x7f0efef3e000, 2093056, PROT_NONE) = 0
mmap(0x7f0eff13d000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 11, 0x4000) = 0x7f0eff13d000
close(11)                               = 0
mprotect(0x7f0eff13d000, 4096, PROT_READ) = 0
open("/usr/lib/x86_64-linux-gnu/sasl2/libdigestmd5.so", O_RDONLY) = 11
read(11, ""..., 832)                    = 832
fstat(11, {st_mode=S_IFREG|0644, st_size=55832, ...}) = 0
mmap(NULL, 2151064, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 11, 0) = 0x7f0efed2b000
mprotect(0x7f0efed38000, 2093056, PROT_NONE) = 0
mmap(0x7f0efef37000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 11, 0xc000) = 0x7f0efef37000
close(11)                               = 0
open("/etc/ld.so.cache", O_RDONLY)      = 11
fstat(11, {st_mode=S_IFREG|0644, st_size=18221, ...}) = 0
mmap(NULL, 18221, PROT_READ, MAP_PRIVATE, 11, 0) = 0x7f0f02bb2000
close(11)                               = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0", O_RDONLY) = 11
read(11, ""..., 832)                    = 832
fstat(11, {st_mode=S_IFREG|0644, st_size=2048480, ...}) = 0
mmap(NULL, 4158808, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 11, 0) = 0x7f0efe933000
mprotect(0x7f0efeafd000, 2097152, PROT_NONE) = 0
mmap(0x7f0efecfd000, 172032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 11, 0x1ca000) = 0x7f0efecfd000
mmap(0x7f0efed27000, 13656, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f0efed27000
close(11)                               = 0
mprotect(0x7f0efecfd000, 110592, PROT_READ) = 0
mprotect(0x7f0efef37000, 4096, PROT_READ) = 0
munmap(0x7f0f02bb2000, 18221)           = 0
open("/usr/lib/x86_64-linux-gnu/sasl2/libplain.so", O_RDONLY) = 11
read(11, ""..., 832)                    = 832
fstat(11, {st_mode=S_IFREG|0644, st_size=18584, ...}) = 0
mmap(NULL, 2113800, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 11, 0) = 0x7f0efe72e000
mprotect(0x7f0efe732000, 2093056, PROT_NONE) = 0
mmap(0x7f0efe931000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 11, 0x3000) = 0x7f0efe931000
close(11)                               = 0
mprotect(0x7f0efe931000, 4096, PROT_READ) = 0
open("/usr/lib/x86_64-linux-gnu/sasl2/libsasldb.so", O_RDONLY) = 11
read(11, ""..., 832)                    = 832
fstat(11, {st_mode=S_IFREG|0644, st_size=26600, ...}) = 0
mmap(NULL, 2121816, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 11, 0) = 0x7f0efe527000
mprotect(0x7f0efe52d000, 2093056, PROT_NONE) = 0
mmap(0x7f0efe72c000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 11, 0x5000) = 0x7f0efe72c000
close(11)                               = 0
mprotect(0x7f0efe72c000, 4096, PROT_READ) = 0
open("/usr/lib/x86_64-linux-gnu/sasl2/libntlm.so", O_RDONLY) = 11
read(11, ""..., 832)                    = 832
fstat(11, {st_mode=S_IFREG|0644, st_size=34968, ...}) = 0
mmap(NULL, 2130184, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 11, 0) = 0x7f0efe31e000
mprotect(0x7f0efe326000, 2093056, PROT_NONE) = 0
mmap(0x7f0efe525000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 11, 0x7000) = 0x7f0efe525000
close(11)                               = 0
mprotect(0x7f0efe525000, 4096, PROT_READ) = 0
open("/usr/lib/x86_64-linux-gnu/sasl2/liblogin.so", O_RDONLY) = 11
read(11, ""..., 832)                    = 832
fstat(11, {st_mode=S_IFREG|0644, st_size=18584, ...}) = 0
mmap(NULL, 2113800, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 11, 0) = 0x7f0efe119000
mprotect(0x7f0efe11d000, 2093056, PROT_NONE) = 0
mmap(0x7f0efe31c000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 11, 0x3000) = 0x7f0efe31c000
close(11)                               = 0
mprotect(0x7f0efe31c000, 4096, PROT_READ) = 0
getdents(10, /* 0 entries */, 32768)    = 0
close(10)                               = 0
open("/usr/lib/sasl2", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 10
getdents(10, /* 3 entries */, 32768)    = 88
getdents(10, /* 0 entries */, 32768)    = 0
close(10)                               = 0
brk(0x7f0f03f23000)                     = 0x7f0f03f23000
stat("/etc/ldap/slapd.conf", {st_mode=S_IFREG|0644, st_size=7848, ...}) = 0
open("/etc/ldap/slapd.conf", O_RDONLY)  = 10
fstat(10, {st_mode=S_IFREG|0644, st_size=7848, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f0f02bb6000
read(10, ""..., 4096)                   = 4096
stat("/etc/ldap/schema/core.schema", {st_mode=S_IFREG|0644, st_size=20346, ...}) = 0
open("/etc/ldap/schema/core.schema", O_RDONLY) = 11
fstat(11, {st_mode=S_IFREG|0644, st_size=20346, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f0f02bb5000
read(11, ""..., 4096)                   = 4096
read(11, ""..., 4096)                   = 4096
read(11, ""..., 4096)                   = 4096
read(11, ""..., 4096)                   = 4096
read(11, ""..., 4096)                   = 3962
read(11, "", 4096)                      = 0
close(11)                               = 0
munmap(0x7f0f02bb5000, 4096)            = 0
stat("/etc/ldap/schema/corba.schema", {st_mode=S_IFREG|0644, st_size=2084, ...}) = 0
open("/etc/ldap/schema/corba.schema", O_RDONLY) = 11
fstat(11, {st_mode=S_IFREG|0644, st_size=2084, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f0f02bb5000
read(11, ""..., 4096)                   = 2084
brk(0x7f0f03f44000)                     = 0x7f0f03f44000
read(11, "", 4096)                      = 0
read(11, "", 4096)                      = 0
close(11)                               = 0
munmap(0x7f0f02bb5000, 4096)            = 0
stat("/etc/ldap/schema/cosine.schema", {st_mode=S_IFREG|0644, st_size=14030, ...}) = 0
open("/etc/ldap/schema/cosine.schema", O_RDONLY) = 11
fstat(11, {st_mode=S_IFREG|0644, st_size=14030, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f0f02bb5000
read(11, ""..., 4096)                   = 4096
read(11, ""..., 4096)                   = 4096
read(11, ""..., 4096)                   = 4096
read(11, ""..., 4096)                   = 1742
read(11, "", 4096)                      = 0
read(11, "", 4096)                      = 0
close(11)                               = 0
munmap(0x7f0f02bb5000, 4096)            = 0
stat("/etc/ldap/schema/inetorgperson.schema", {st_mode=S_IFREG|0644, st_size=6267, ...}) = 0
open("/etc/ldap/schema/inetorgperson.schema", O_RDONLY) = 11
fstat(11, {st_mode=S_IFREG|0644, st_size=6267, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f0f02bb5000
read(11, ""..., 4096)                   = 4096
read(11, ""..., 4096)                   = 2171
read(11, "", 4096)                      = 0
read(11, "", 4096)                      = 0
close(11)                               = 0
munmap(0x7f0f02bb5000, 4096)            = 0
stat("/etc/ldap/schema/nis.schema", {st_mode=S_IFREG|0644, st_size=7640, ...}) = 0
open("/etc/ldap/schema/nis.schema", O_RDONLY) = 11
fstat(11, {st_mode=S_IFREG|0644, st_size=7640, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f0f02bb5000
read(11, ""..., 4096)                   = 4096
read(11, ""..., 4096)                   = 3544
read(11, "", 4096)                      = 0
read(11, "", 4096)                      = 0
close(11)                               = 0
munmap(0x7f0f02bb5000, 4096)            = 0
stat("/etc/ldap/schema/amavis.schema", {st_mode=S_IFREG|0644, st_size=36067, ...}) = 0
open("/etc/ldap/schema/amavis.schema", O_RDONLY) = 11
fstat(11, {st_mode=S_IFREG|0644, st_size=36067, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f0f02bb5000
read(11, ""..., 4096)                   = 4096
read(11, ""..., 4096)                   = 4096
read(11, ""..., 4096)                   = 4096
read(11, ""..., 4096)                   = 4096
read(11, ""..., 4096)                   = 4096
read(11, ""..., 4096)                   = 4096
read(11, ""..., 4096)                   = 4096
read(11, ""..., 4096)                   = 4096
read(11, ""..., 4096)                   = 3299
read(11, "", 4096)                      = 0
read(11, "", 4096)                      = 0
close(11)                               = 0
munmap(0x7f0f02bb5000, 4096)            = 0
stat("/etc/ldap/schema/iredmail.schema", {st_mode=S_IFREG|0644, st_size=16011, ...}) = 0
open("/etc/ldap/schema/iredmail.schema", O_RDONLY) = 11
fstat(11, {st_mode=S_IFREG|0644, st_size=16011, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f0f02bb5000
read(11, ""..., 4096)                   = 4096
read(11, ""..., 4096)                   = 4096
brk(0x7f0f03f65000)                     = 0x7f0f03f65000
read(11, ""..., 4096)                   = 4096
read(11, ""..., 4096)                   = 3723
read(11, "", 4096)                      = 0
read(11, "", 4096)                      = 0
close(11)                               = 0
munmap(0x7f0f02bb5000, 4096)            = 0
open("/usr/lib/ldap/back_bdb.la", O_RDONLY) = 11
fstat(11, {st_mode=S_IFREG|0644, st_size=953, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f0f02bb5000
read(11, ""..., 4096)                   = 953
read(11, "", 4096)                      = 0
close(11)                               = 0
munmap(0x7f0f02bb5000, 4096)            = 0
open("/usr/lib/ldap/back_bdb-2.4.so.2", O_RDONLY) = 11
read(11, ""..., 832)                    = 832
fstat(11, {st_mode=S_IFREG|0644, st_size=188184, ...}) = 0
mmap(NULL, 2383608, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 11, 0) = 0x7f0efded3000
mprotect(0x7f0efdeff000, 2097152, PROT_NONE) = 0
mmap(0x7f0efe0ff000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 11, 0x2c000) = 0x7f0efe0ff000
mmap(0x7f0efe101000, 98040, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f0efe101000
close(11)                               = 0
mprotect(0x7f0efe0ff000, 4096, PROT_READ) = 0
time([1399649642])                      = 1399649642
sendto(3, ""..., 330, MSG_NOSIGNAL, NULL, 0) = 330
time([1399649642])                      = 1399649642
sendto(3, ""..., 80, MSG_NOSIGNAL, NULL, 0) = 80
time([1399649642])                      = 1399649642
sendto(3, ""..., 80, MSG_NOSIGNAL, NULL, 0) = 80
time([1399649642])                      = 1399649642
sendto(3, ""..., 85, MSG_NOSIGNAL, NULL, 0) = 85
time([1399649642])                      = 1399649642
sendto(3, ""..., 85, MSG_NOSIGNAL, NULL, 0) = 85
time([1399649642])                      = 1399649642
sendto(3, ""..., 278, MSG_NOSIGNAL, NULL, 0) = 278
time([1399649642])                      = 1399649642
sendto(3, ""..., 80, MSG_NOSIGNAL, NULL, 0) = 80
time([1399649642])                      = 1399649642
sendto(3, ""..., 80, MSG_NOSIGNAL, NULL, 0) = 80
time([1399649642])                      = 1399649642
sendto(3, ""..., 85, MSG_NOSIGNAL, NULL, 0) = 85
time([1399649642])                      = 1399649642
sendto(3, ""..., 85, MSG_NOSIGNAL, NULL, 0) = 85
time([1399649642])                      = 1399649642
sendto(3, ""..., 396, MSG_NOSIGNAL, NULL, 0) = 396
time([1399649642])                      = 1399649642
sendto(3, ""..., 80, MSG_NOSIGNAL, NULL, 0) = 80
time([1399649642])                      = 1399649642
sendto(3, ""..., 80, MSG_NOSIGNAL, NULL, 0) = 80
time([1399649642])                      = 1399649642
sendto(3, ""..., 85, MSG_NOSIGNAL, NULL, 0) = 85
time([1399649642])                      = 1399649642
sendto(3, ""..., 85, MSG_NOSIGNAL, NULL, 0) = 85
time([1399649642])                      = 1399649642
sendto(3, ""..., 321, MSG_NOSIGNAL, NULL, 0) = 321
time([1399649642])                      = 1399649642
sendto(3, ""..., 80, MSG_NOSIGNAL, NULL, 0) = 80
time([1399649642])                      = 1399649642
sendto(3, ""..., 80, MSG_NOSIGNAL, NULL, 0) = 80
time([1399649642])                      = 1399649642
sendto(3, ""..., 85, MSG_NOSIGNAL, NULL, 0) = 85
time([1399649642])                      = 1399649642
sendto(3, ""..., 85, MSG_NOSIGNAL, NULL, 0) = 85
time([1399649642])                      = 1399649642
sendto(3, ""..., 377, MSG_NOSIGNAL, NULL, 0) = 377
time([1399649642])                      = 1399649642
sendto(3, ""..., 80, MSG_NOSIGNAL, NULL, 0) = 80
time([1399649642])                      = 1399649642
sendto(3, ""..., 80, MSG_NOSIGNAL, NULL, 0) = 80
time([1399649642])                      = 1399649642
sendto(3, ""..., 85, MSG_NOSIGNAL, NULL, 0) = 85
time([1399649642])                      = 1399649642
sendto(3, ""..., 85, MSG_NOSIGNAL, NULL, 0) = 85
time([1399649642])                      = 1399649642
sendto(3, ""..., 265, MSG_NOSIGNAL, NULL, 0) = 265
time([1399649642])                      = 1399649642
sendto(3, ""..., 80, MSG_NOSIGNAL, NULL, 0) = 80
time([1399649642])                      = 1399649642
sendto(3, ""..., 80, MSG_NOSIGNAL, NULL, 0) = 80
time([1399649642])                      = 1399649642
sendto(3, ""..., 85, MSG_NOSIGNAL, NULL, 0) = 85
time([1399649642])                      = 1399649642
sendto(3, ""..., 85, MSG_NOSIGNAL, NULL, 0) = 85
time([1399649642])                      = 1399649642
sendto(3, ""..., 213, MSG_NOSIGNAL, NULL, 0) = 213
time([1399649642])                      = 1399649642
sendto(3, ""..., 85, MSG_NOSIGNAL, NULL, 0) = 85
time([1399649642])                      = 1399649642
sendto(3, ""..., 85, MSG_NOSIGNAL, NULL, 0) = 85
read(10, ""..., 4096)                   = 3752
time([1399649642])                      = 1399649642
sendto(3, ""..., 505, MSG_NOSIGNAL, NULL, 0) = 505
time([1399649642])                      = 1399649642
sendto(3, ""..., 80, MSG_NOSIGNAL, NULL, 0) = 80
time([1399649642])                      = 1399649642
sendto(3, ""..., 80, MSG_NOSIGNAL, NULL, 0) = 80
time([1399649642])                      = 1399649642
sendto(3, ""..., 85, MSG_NOSIGNAL, NULL, 0) = 85
time([1399649642])                      = 1399649642
sendto(3, ""..., 85, MSG_NOSIGNAL, NULL, 0) = 85
time([1399649642])                      = 1399649642
sendto(3, ""..., 412, MSG_NOSIGNAL, NULL, 0) = 412
time([1399649642])                      = 1399649642
sendto(3, ""..., 81, MSG_NOSIGNAL, NULL, 0) = 81
time([1399649642])                      = 1399649642
sendto(3, ""..., 81, MSG_NOSIGNAL, NULL, 0) = 81
time([1399649642])                      = 1399649642
sendto(3, ""..., 80, MSG_NOSIGNAL, NULL, 0) = 80
time([1399649642])                      = 1399649642
sendto(3, ""..., 80, MSG_NOSIGNAL, NULL, 0) = 80
time([1399649642])                      = 1399649642
sendto(3, ""..., 85, MSG_NOSIGNAL, NULL, 0) = 85
time([1399649642])                      = 1399649642
sendto(3, ""..., 85, MSG_NOSIGNAL, NULL, 0) = 85
time([1399649642])                      = 1399649642
sendto(3, ""..., 331, MSG_NOSIGNAL, NULL, 0) = 331
time([1399649642])                      = 1399649642
sendto(3, ""..., 86, MSG_NOSIGNAL, NULL, 0) = 86
time([1399649642])                      = 1399649642
sendto(3, ""..., 86, MSG_NOSIGNAL, NULL, 0) = 86
time([1399649642])                      = 1399649642
sendto(3, ""..., 80, MSG_NOSIGNAL, NULL, 0) = 80
time([1399649642])                      = 1399649642
sendto(3, ""..., 80, MSG_NOSIGNAL, NULL, 0) = 80
time([1399649642])                      = 1399649642
sendto(3, ""..., 85, MSG_NOSIGNAL, NULL, 0) = 85
time([1399649642])                      = 1399649642
sendto(3, ""..., 85, MSG_NOSIGNAL, NULL, 0) = 85
time([1399649642])                      = 1399649642
sendto(3, ""..., 213, MSG_NOSIGNAL, NULL, 0) = 213
time([1399649642])                      = 1399649642
sendto(3, ""..., 177, MSG_NOSIGNAL, NULL, 0) = 177
time([1399649642])                      = 1399649642
sendto(3, ""..., 60, MSG_NOSIGNAL, NULL, 0) = 60
time([1399649642])                      = 1399649642
sendto(3, ""..., 72, MSG_NOSIGNAL, NULL, 0) = 72
time([1399649642])                      = 1399649642
sendto(3, ""..., 75, MSG_NOSIGNAL, NULL, 0) = 75
time([1399649642])                      = 1399649642
sendto(3, ""..., 74, MSG_NOSIGNAL, NULL, 0) = 74
time([1399649642])                      = 1399649642
sendto(3, ""..., 96, MSG_NOSIGNAL, NULL, 0) = 96
time([1399649642])                      = 1399649642
sendto(3, ""..., 75, MSG_NOSIGNAL, NULL, 0) = 75
time([1399649642])                      = 1399649642
sendto(3, ""..., 74, MSG_NOSIGNAL, NULL, 0) = 74
time([1399649642])                      = 1399649642
sendto(3, ""..., 96, MSG_NOSIGNAL, NULL, 0) = 96
time([1399649642])                      = 1399649642
sendto(3, ""..., 83, MSG_NOSIGNAL, NULL, 0) = 83
open("/var/lib/ldap/campus.local/DUMMY", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 11
close(11)                               = 0
unlink("/var/lib/ldap/campus.local/DUMMY") = 0
open("/var/lib/ldap/campus.local/DB_CONFIG", O_RDONLY) = 11
close(11)                               = 0
time([1399649642])                      = 1399649642
sendto(3, ""..., 88, MSG_NOSIGNAL, NULL, 0) = 88
time([1399649642])                      = 1399649642
sendto(3, ""..., 58, MSG_NOSIGNAL, NULL, 0) = 58
time([1399649642])                      = 1399649642
sendto(3, ""..., 55, MSG_NOSIGNAL, NULL, 0) = 55
time([1399649642])                      = 1399649642
sendto(3, ""..., 56, MSG_NOSIGNAL, NULL, 0) = 56
time([1399649642])                      = 1399649642
sendto(3, ""..., 86, MSG_NOSIGNAL, NULL, 0) = 86
time([1399649642])                      = 1399649642
sendto(3, ""..., 85, MSG_NOSIGNAL, NULL, 0) = 85
time([1399649642])                      = 1399649642
sendto(3, ""..., 118, MSG_NOSIGNAL, NULL, 0) = 118
time([1399649642])                      = 1399649642
sendto(3, ""..., 55, MSG_NOSIGNAL, NULL, 0) = 55
time([1399649642])                      = 1399649642
sendto(3, ""..., 62, MSG_NOSIGNAL, NULL, 0) = 62
time([1399649642])                      = 1399649642
sendto(3, ""..., 62, MSG_NOSIGNAL, NULL, 0) = 62
time([1399649642])                      = 1399649642
sendto(3, ""..., 57, MSG_NOSIGNAL, NULL, 0) = 57
time([1399649642])                      = 1399649642
sendto(3, ""..., 71, MSG_NOSIGNAL, NULL, 0) = 71
time([1399649642])                      = 1399649642
sendto(3, ""..., 71, MSG_NOSIGNAL, NULL, 0) = 71
time([1399649642])                      = 1399649642
sendto(3, ""..., 82, MSG_NOSIGNAL, NULL, 0) = 82
time([1399649642])                      = 1399649642
sendto(3, ""..., 82, MSG_NOSIGNAL, NULL, 0) = 82
time([1399649642])                      = 1399649642
sendto(3, ""..., 62, MSG_NOSIGNAL, NULL, 0) = 62
time([1399649642])                      = 1399649642
sendto(3, ""..., 50, MSG_NOSIGNAL, NULL, 0) = 50
time([1399649642])                      = 1399649642
sendto(3, ""..., 41, MSG_NOSIGNAL, NULL, 0) = 41
time([1399649642])                      = 1399649642
sendto(3, ""..., 50, MSG_NOSIGNAL, NULL, 0) = 50
time(NULL)                              = 1399649642
time([1399649642])                      = 1399649642
sendto(3, ""..., 105, MSG_NOSIGNAL, NULL, 0) = 105
time([1399649642])                      = 1399649642
sendto(3, ""..., 62, MSG_NOSIGNAL, NULL, 0) = 62
time(NULL)                              = 1399649642
time([1399649642])                      = 1399649642
sendto(3, ""..., 61, MSG_NOSIGNAL, NULL, 0) = 61
time([1399649642])                      = 1399649642
sendto(3, ""..., 104, MSG_NOSIGNAL, NULL, 0) = 104
time([1399649642])                      = 1399649642
sendto(3, ""..., 58, MSG_NOSIGNAL, NULL, 0) = 58
write(2, ""..., 82/etc/ldap/slapd.conf: line 211: duplicate index definition for attr "objectClass"
)                     = 82
close(10)                               = 0
munmap(0x7f0f02bb6000, 4096)            = 0
time([1399649642])                      = 1399649642
sendto(3, ""..., 74, MSG_NOSIGNAL, NULL, 0) = 74
time([1399649642])                      = 1399649642
sendto(3, ""..., 56, MSG_NOSIGNAL, NULL, 0) = 56
time([1399649642])                      = 1399649642
sendto(3, ""..., 59, MSG_NOSIGNAL, NULL, 0) = 59
munmap(0x7f0efe119000, 2113800)         = 0
munmap(0x7f0efe31e000, 2130184)         = 0
munmap(0x7f0efe527000, 2121816)         = 0
munmap(0x7f0efe72e000, 2113800)         = 0
munmap(0x7f0efed2b000, 2151064)         = 0
munmap(0x7f0efe933000, 4158808)         = 0
munmap(0x7f0efef39000, 2117896)         = 0
munmap(0x7f0eff13f000, 2113800)         = 0
munmap(0x7f0efded3000, 2383608)         = 0
time([1399649642])                      = 1399649642
sendto(3, ""..., 48, MSG_NOSIGNAL, NULL, 0) = 48
close(3)                                = 0
time([1399649642])                      = 1399649642
socket(PF_FILE, SOCK_DGRAM|SOCK_CLOEXEC, 0) = 3
connect(3, {sa_family=AF_FILE, path="/dev/log"}, 110) = 0
sendto(3, ""..., 74, MSG_NOSIGNAL, NULL, 0) = 74
shutdown(5, 2 /* send and receive */)   = -1 ENOTSOCK (Socket operation on non-socket)
close(5)                                = 0
shutdown(4, 2 /* send and receive */)   = -1 ENOTSOCK (Socket operation on non-socket)
close(4)                                = 0
close(6)                                = 0
exit_group(1)                           = ?

9

Re: LDAP Replication

jon.hoffart wrote:

shutdown(5, 2 /* send and receive */)   = -1 ENOTSOCK (Socket operation on non-socket)
close(5)                                = 0
shutdown(4, 2 /* send and receive */)   = -1 ENOTSOCK (Socket operation on non-socket)

Everything looks fine, except these two.

"Socket operation on non-socket", is OpenLDAP service already running? Or maybe you have incorrect setting in slapd.conf for socket related options (it looks like a programming error, not config file). Could you please paste the full slapd.conf here? (Remove/Hide/Replace password or sensitive info before pasting.)

10

Re: LDAP Replication

jon.hoffart wrote:

write(2, ""..., 82/etc/ldap/slapd.conf: line 211: duplicate index definition for attr "objectClass"

Also, please fix this duplicate index first.

11

Re: LDAP Replication

here is a copy of the slapd.conf file. I looked for a duplicate on line 211 but do not see where it is duplicated.

# File generated by iRedMail (2014.05.01.14.37.42):

# Version:  0.8.6
# Project:  http://www.iredmail.org/

# Community: http://www.iredmail.org/forum/
#

# Schemas.
include     /etc/ldap/schema/core.schema
include     /etc/ldap/schema/corba.schema
include     /etc/ldap/schema/cosine.schema
include     /etc/ldap/schema/inetorgperson.schema
include     /etc/ldap/schema/nis.schema
# Integrate Amavisd-new.
include     /etc/ldap/schema/amavis.schema
# Schema provided by iRedMail.
include     /etc/ldap/schema/iredmail.schema

# Where the pid file is put. The init.d script will not stop the
# server if you change this.
pidfile     /var/run/slapd/slapd.pid

# List of arguments that were passed to the server
argsfile    /var/run/slapd/slapd.args

# TLS files.
TLSCACertificateFile /etc/ssl/certs/iRedMail_CA.pem
TLSCertificateFile /etc/ssl/certs/iRedMail_CA.pem
TLSCertificateKeyFile /etc/ssl/private/iRedMail.key

# Modules.
modulepath  /usr/lib/ldap
moduleload  back_bdb

# Disallow bind as anonymous.
disallow    bind_anon

# Uncomment below line to allow binding as anonymous.
#allow bind_anon_cred

# Specify LDAP protocol version.
require     LDAPv3
#allow       bind_v2

# Log level.
#   -1:     enable all debugging
#    0:     no debugging
#   128:    access control list processing
#   256:    stats log connections/operations/results
loglevel    -1


# Access Control List. Used for LDAP bind.
#
# NOTE: Every domain have a administrator. e.g.
#   Domain Name: 'medoraco.com'
#   Admin Name: mail=postmaster@medoraco.com, domainName=medoraco.com, o=domains,dc=campus,dc=local
#

# Allow users to change their own passwords and mail forwarding addresses.
access to attrs="userPassword,mailForwardingAddress,storageBaseDirectory,homeDirectory,mailMessageStore"
    by anonymous    auth
    by self         write
    by dn.exact="cn=vmail,dc=campus,dc=local"   read
    by dn.exact="cn=vmailadmin,dc=campus,dc=local"  write
    by users        none

# Allow to read others public info.
access to attrs="cn,sn,gn,givenName,telephoneNumber"
    by anonymous    auth
    by self         write
    by dn.exact="cn=vmail,dc=campus,dc=local"   read
    by dn.exact="cn=vmailadmin,dc=campus,dc=local"  write
    by users        read

# Domain attrs.
access to attrs="objectclass,domainName,mtaTransport,enabledService,domainSenderBccAddress,domainRecipientBccAddress,domainBackupMX,domainMaxQuotaSize,domainMaxUserNumber"
    by anonymous    auth
    by self         read
    by dn.exact="cn=vmail,dc=campus,dc=local"   read
    by dn.exact="cn=vmailadmin,dc=campus,dc=local"  write
    by users        read

access to attrs="domainAdmin,domainGlobalAdmin,domainSenderBccAddress,domainRecipientBccAddress"
    by anonymous    auth
    by self         read
    by dn.exact="cn=vmail,dc=campus,dc=local"   read
    by dn.exact="cn=vmailadmin,dc=campus,dc=local"  write
    by users        none

# User attrs.
access to attrs="employeeNumber,mail,accountStatus,userSenderBccAddress,userRecipientBccAddress,mailQuota,backupMailAddress,shadowAddress,memberOfGroup"
    by anonymous    auth
    by self         read
    by dn.exact="cn=vmail,dc=campus,dc=local"   read
    by dn.exact="cn=vmailadmin,dc=campus,dc=local"  write
    by users        read

#
# Set ACL for vmail/vmailadmin.
#
access to dn="cn=vmail,dc=campus,dc=local"
    by anonymous                    auth
    by self                         write
    by dn.exact="cn=vmailadmin,dc=campus,dc=local"  write
    by users                        none

access to dn="cn=vmailadmin,dc=campus,dc=local"
    by anonymous                    auth
    by self                         write
    by users                        none

#
# Allow users to access their own domain subtree.
# Allow domain admin to modify accounts under same domain.
#
access to dn.regex="domainName=([^,]+),o=domains,dc=campus,dc=local$"
    by anonymous                    auth
    by self                         write
    by dn.exact="cn=vmail,dc=campus,dc=local"   read
    by dn.exact="cn=vmailadmin,dc=campus,dc=local"  write
    by dn.regex="mail=[^,]+@$1,o=domainAdmins,dc=campus,dc=local$" write
    by dn.regex="mail=[^,]+@$1,ou=Users,domainName=$1,o=domains,dc=campus,dc=local$" read
    by users                        none

#
# Grant correct privileges to vmail/vmailadmin.
#
access to dn.subtree="o=domains,dc=campus,dc=local"
    by anonymous                    auth
    by self                         write
    by dn.exact="cn=vmail,dc=campus,dc=local"   read
    by dn.exact="cn=vmailadmin,dc=campus,dc=local"  write
    by dn.regex="mail=[^,]+,ou=Users,domainName=$1,o=domains,dc=campus,dc=local$" read
    by users                        read

access to dn.subtree="o=domainAdmins,dc=campus,dc=local"
    by anonymous                    auth
    by self                         write
    by dn.exact="cn=vmail,dc=campus,dc=local"   read
    by dn.exact="cn=vmailadmin,dc=campus,dc=local"  write
    by users                        none

#
# Set permission for "cn=*,dc=campus,dc=local".
#
access to dn.regex="cn=[^,]+,dc=campus,dc=local"
    by anonymous                    auth
    by self                         write
   by users                        none

#
# Set default permission.
#
access to *
    by anonymous                    auth
    by self                         write
    by users                        read

#######################################################################
# BDB database definitions
#######################################################################

database    bdb
suffix      dc=campus,dc=local
rootdn      dc=campus,dc=local
directory   /var/lib/ldap/campus.local
index        objectclass,entryCSN,entryUUID eq

rootdn      cn=Manager,dc=campus,dc=local
rootpw      secret

sizelimit   10000
cachesize   10000

syncrepl rid=101
    provider=ldap://192.168.179.251
    type=RefreshandPersist
    interval=00:01:00:00
    retry="5 5 300 +"
    searchbase="dc=campus,dc=local"
    filter="(objectClass=*)"
    scope=sub
    attrs="*,+"
    bindmethod=simple
    binddn="cn=Manager,dc=campus,dc=local"
    credentials=secret

# This directive specifies how often to checkpoint the BDB transaction log.
# A checkpoint operation flushes the database buffers to disk and writes a
# checkpoint record in the log. The checkpoint will occur if either <kbyte>
# data has been written or <min> minutes have passed since the last checkpoint.
# Both arguments default to zero, in which case they are ignored. When the
# <min> argument is non-zero, an internal task will run every <min> minutes
# to perform the checkpoint. See the Berkeley DB reference guide for more
# details.
#
# OpenLDAP default is NO CHECKPOINTING.
#
# whenever 128kb data bytes written or 5 minutes has elapsed
checkpoint  128 5

# Set directory permission.
mode        0700

#
# Default index.
#
index objectClass                                   eq,pres
index uidNumber,gidNumber,uid,memberUid,loginShell  eq,pres
index homeDirectory,mailMessageStore                eq,pres
index ou,cn,mail,surname,givenname,telephoneNumber  eq,pres,sub
#index nisMapName,nisMapEntry                        eq,pres,sub
index shadowLastChange                              eq,pres

#
# Index for mail attrs.
#
# ---- Domain related ----
index domainName,mtaTransport,accountStatus,enabledService  eq,pres,sub
index domainAliasName    eq,pres,sub
index domainMaxUserNumber eq,pres
index domainAdmin,domainGlobalAdmin,domainBackupMX    eq,pres,sub
index domainSenderBccAddress,domainRecipientBccAddress  eq,pres,sub
# ---- Group related ----
index accessPolicy,hasMember,listAllowedUser   eq,pres,sub
# ---- User related ----
index mailForwardingAddress,shadowAddress   eq,pres,sub
index backupMailAddress,memberOfGroup   eq,pres,sub
index userRecipientBccAddress,userSenderBccAddress  eq,pres,sub

12

Re: LDAP Replication

jon.hoffart wrote:

index        objectclass,entryCSN,entryUUID eq
...
index objectClass                                   eq,pres

Duplicate 'objectclass'.

I have no idea yet,

13

Re: LDAP Replication

Zhang,
I was able to find the duplicate entry and successfully start the slapd service, both servers seem to be up and running correctly now.

Looking at the code directly under the database definitions section is an index line that specifies objectclass, a little further down in the file there is a default indexes portion also with an index line that specifies object class. Comment one of these lines out and the splad service then starts.



#######################################################################
# BDB database definitions
#######################################################################
database    bdb
suffix      dc=campus,dc=local
rootdn      dc=campus,dc=local
directory   /var/lib/ldap/campus.local
index        objectclass,entryCSN,entryUUID eq



# Default index.
#
index objectClass                                   eq,pres
index uidNumber,gidNumber,uid,memberUid,loginShell  eq,pres
index homeDirectory,mailMessageStore                eq,pres
index ou,cn,mail,surname,givenname,telephoneNumber  eq,pres,sub
#index nisMapName,nisMapEntry                        eq,pres,sub
index shadowLastChange                              eq,pres