Autofs & LDAP

Autofs & LDAP

am 17.02.2004 19:13:23 von Jeff Largent

On Redhat 7.3 with openldap-servers-2.0.27-2.7.3, and autofs-3.1.7-28. I have a
working autofs/ldap configuration.

dn: ou=auto.master,dc=il,dc=com
ou: auto.master
objectClass: top
objectClass: automountMap

dn: cn=/opt,ou=auto.master,dc=il,dc=com
objectClass: automount
cn: /opt
automountInformation: ldap:ldap.il.com:ou=auto.opt,dc=imagelinks,dc=com

dn: cn=bin,ou=auto.opt,dc=il,dc=com
objectClass: automount
cn: bin
automountInformation: -ro bserv.il.com:/export/Linux-2/opt/bin

The same maps on Fedora core 1 with openldap-servers-2.1.22-8, and
autofs-3.1.7-42 refuse to work.

This is what I see in the logs:
automount[13734]: starting automounter version 3.1.7, path = /cm, maptype =
ldap, mapname = ldap.il.com:ou=auto.cm,dc=il,dc=com

if I put a space between the : after the ldap hostname and the dn auto fs
reconizes the automount but then fails on the lookup.
automount[8400]: lookup(ldap): query failed for (&(objectclass=automount)(cn=opt))

a ldapsearch -x "(&(objectclass=automount)(cn=opt))" returns the proper map.

Any suggestions??
In slapd.conf I have "allow bind_v2"



--
Jeff Largent ImageLinks, Inc.

-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: Autofs & LDAP

am 23.02.2004 22:53:39 von Jeff Largent

FYI:
I found the problem, with openldap 2.1 you have to allow bind_anon_dn
for autofs to work.



Jeff Largent wrote:
> On Redhat 7.3 with openldap-servers-2.0.27-2.7.3, and autofs-3.1.7-28. I
> have a
> working autofs/ldap configuration.
>
> dn: ou=auto.master,dc=il,dc=com
> ou: auto.master
> objectClass: top
> objectClass: automountMap
>
> dn: cn=/opt,ou=auto.master,dc=il,dc=com
> objectClass: automount
> cn: /opt
> automountInformation: ldap:ldap.il.com:ou=auto.opt,dc=imagelinks,dc=com
>
> dn: cn=bin,ou=auto.opt,dc=il,dc=com
> objectClass: automount
> cn: bin
> automountInformation: -ro bserv.il.com:/export/Linux-2/opt/bin
>
> The same maps on Fedora core 1 with openldap-servers-2.1.22-8, and
> autofs-3.1.7-42 refuse to work.
>
> This is what I see in the logs:
> automount[13734]: starting automounter version 3.1.7, path = /cm,
> maptype = ldap, mapname = ldap.il.com:ou=auto.cm,dc=il,dc=com
>
> if I put a space between the : after the ldap hostname and the dn auto
> fs reconizes the automount but then fails on the lookup.
> automount[8400]: lookup(ldap): query failed for
> (&(objectclass=automount)(cn=opt))
>
> a ldapsearch -x "(&(objectclass=automount)(cn=opt))" returns the proper
> map.
>
> Any suggestions??
> In slapd.conf I have "allow bind_v2"
>
>
>

--
Jeff Largent ImageLinks, Inc.

-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html