[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Need help to export ldap user home directory "/home/ldapuser" to client LDAP

ashwani singh wrote:
[root@sc1435-7 home]# ldapmodify -x -D "cn=Manager,dc=ldapserver,dc=com" -W -f /etc/openldap/automount.ldif
modifying entry "cn=testdir,ou=auto.home,dc=ldapserver,dc=com"
ldap_modify: No such object (32)
matched DN: ou=auto.home,dc=ldapserver,dc=com

From this error message it's pretty obvious that the entry
"cn=testdir,ou=auto.home,dc=ldapserver,dc=com" which you're trying to modify does not yet exist.

See also: http://www.openldap.org/faq/data/cache/343.html

# cat /etc/openldap/automount.ldif
dn: cn=LDAP,ou=auto.home,dc=ldapserver,dc=com
objectClass: automount
automountInformation: -rw,hard,intr sc1435-7:/home/LDAP
cn: LDAP

This is not a ldif-change-record suitable for ldapmodify. It seems to be a ldif-attrval-record specifying a complete entry. Do you want to add this as a new entry? Then use command-line tool ldapadd instead which will raise an error on existing LDAP entries though. Note that ldapmodify does not automagically add LDAP entries for a ldif-attrval-record found in your LDIF file.

For a definition of ldif-change-record and ldif-attrval-record see RFC 2849. It also contains a chapter with examples.

Ciao, Michael.