Reading ldif(5) manual, i saw two LDIF types: Entry Records and Change
Records.
LDIF entry records are used to represent directory entries and LDIF change
records are used to represent directory change requests.
Let me explain with this example:
Suppose i have on my directory a entry like:
uid=test,ou=people,dc=example,dc=com
objectClass: account
objectClass: posixAccount
objectClass: SIPIdentity
objectClass: top
uid: test
loginShell: /bin/bash
uidNumber: 600
gidNumber: 100
homeDirectory: /home/test
gecos: test
userPassword: {SSHA}nswXaxRGB3jBPNnpYGzRiQrAt6k5eCyr
SIPIdentitySIPURI: sip:00011080@voip.example.com
SIPIdentityServiceLevel: AR
SIPIdentityUserName: 10811080
SIPIdentityPassword: 8997e7a13ff2641ae6142f05b41efd6f
If i create a LDIF with other password and without SIP attributes like:
uid=test,ou=people,dc=example,dc=com
objectClass: account
objectClass: posixAccount
objectClass: SIPIdentity
objectClass: top
uid: test
loginShell: /bin/bash
uidNumber: 600
gidNumber: 100
homeDirectory: /home/test
gecos: test
userPassword: {SSHA}xLkfk/Lt5F5VG872wEqbC0H5+AlP6bIu
And using ldapmodify to update the entry with LDIF above, i expect the all
entry be replaced by LDIF data. Am i wrong?