-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
>>>>> Charles Tryon writes:
Charles> I've been working on getting an LDAP server up and running, inan
Charles> attempt to replace my old NIS service. I've used the following
Charles> tutorial to get much of the service up and running -- in particular
Charles> getting user names and passwords working so I can have a common
Charles> authentication model.
Charles>
http://www.linuxjournal.com/article/8119
Charles> I'm hoping at some point to be able to tie in LDAP and Samba so I can
Charles> unify my logins across both Linux and Windows, but that's another
Charles> thread...
Charles> The one problem I'm stuck on however is specifying the automount
Charles> sources. I was able to do this in NIS by specifying the automount
Charles> maps, in particular for auto.home.
Charles> I am building this on a reasonably clean install of a Fedora-7
Charles> server. Following the tutorial, I've created the following
Charles> auto.master.ldif:
Charles> ================================
Charles> dn: ou=auto.master,dc=bbaggins,dc=net
Charles> objectClass: top
Charles> objectClass: automountMap
Charles> ou: auto.master
Charles> dn: cn=/h,ou=auto.master,dc=bbaggins,dc=net
Charles> objectClass: automount
Charles> automountInformation: ldap

u=auto.home,dc=bbaggins,dc=net
Charles> cn: /h
Charles> dn: cn=/share,ou=auto.master,dc=bbaggins,dc=net
Charles> objectClass: automount
Charles> automountInformation: ldap

u=auto.misc,dc=bbaggins,dc=net
Charles> cn: /share
Charles> ================================
Charles> However, when I try to add the entries, I get the following:
Charles> # ldapadd -a -W -x -D "cn=root,dc=bbaggins,dc=net" -f ~/auto.master.ldif
Charles> Enter LDAP Password:
Charles> adding new entry "ou=auto.master,dc=bbaggins,dc=net"
Charles> ldap_add: Invalid syntax (21)
Charles> additional info: objectClass: value #1 invalid per syntax
Charles> The schemas which I am including in the slapd.conf file are:
Charles> include /etc/openldap/schema/core.schema
Charles> include /etc/openldap/schema/cosine.schema
Charles> include /etc/openldap/schema/inetorgperson.schema
Charles> include /etc/openldap/schema/nis.schema
Charles> include /etc/openldap/schema/samba.schema
Charles> include /etc/openldap/schema/misc.schema
Charles> Any ideas where I might be missing something???
IIRC, none of the above schemas, has "automountMap" type defined. You
need to include a schema which "automountMap" type defined. Check out
the configuration at URL you mentioned.
HTH
- --
Ashish Shukla आशीष शुक्ल
http://wahjava.wordpress.com/
·-- ·- ···· ·--- ·- ···- ·- ·--·-· --· -- ·- ·· ·-·· ·-·-·- -·-· --- --
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFHk63mHy+EEHYuXnQRAosXAKCikKKdyYdjeTvfZ2uRt4 4fsX/cnwCfSmgw
zP77oCCdDb0w6Al4G+9FZsk=
=dtwo
-----END PGP SIGNATURE-----