Son of a [EMAIL PROTECTED]

Added dn: and it works.

THANKS!

Opened a case with Sun to see if there were any "other" bugs in 5.2p6
and received the following:

"Have you restarted ns-slapd?"

I now see this:

Apr 25 05:42:43 gsbtestfilervm automount[11571]: get_query_dn:
lookup(ldap): query succeeded, no matches for
(&(objectclass=nisMap)(nisMapName=auto.master))
Apr 25 05:42:43 gsbtestfilervm automount[11571]: unbind_ldap_connection:
use_tls: 0
Apr 25 05:42:43 gsbtestfilervm automount[11571]: lookup_init:
lookup(ldap): failed to get query dn
Apr 25 05:42:43 gsbtestfilervm automount[11571]: lookup_read_master:
lookup(file): failed to read included master map auto.master

And server-side I see this:
[25/Apr/2008:11:01:28 -0500] conn=3021 op=2 msgId=3 - SRCH
base="o=gsb,dc=uchicago,dc=edu" scope=2
filter="(&(objectClass=nisMap)(nisMapName=auto.master))" attrs="1.1"
[25/Apr/2008:11:01:28 -0500] conn=3021 op=2 msgId=3 - RESULT err=0
tag=101 nentries=0 etime=0

So it's at least getting to a search. I'm thinking that since I've
configured these LDAP instances to service Solaris native LDAP (v2)
clients it's the location/name of the auto.master that it's not liking.

Sun wants it as dn:
automountMapName=auto_master,o=gsb,dc=uchicago,dc=edu which contains:

dn: automountMapName=auto_master,o=gsb,dc=uchicago,dc=edu
automountMapName: auto_master
objectClass: top
objectClass: automountMap

Under that is:

localhost% ls -al
e--       0 Apr 23 17:53 automountKey=/xfn
e--       0 Apr 23 17:53 automountKey=/net
e--       0 Apr 23 17:53 automountKey=/home

Then for /home they have:

dn:
automountKey=/home,automountMapName=auto_master,o=gsb,dc=uchicago,dc=edu
automountKey: /home
automountInformation: auto_home -nobrowse,rw,soft,intr,actimeo=0
objectClass: automount
objectClass: top

>From what I've read autofs wants things completely different (and
probably more RFC like).

So, is there a way to have autofs look at the "more" Sun/Solaris type
entries or am I stuck maintaining 2 methods.

> -----Original Message-----
> From: Ian Kent [mailto:[EMAIL PROTECTED]
> Sent: Friday, April 25, 2008 12:55 AM
> To: Young, Darren
> Cc: Jeff Moyer; [email protected]
> Subject: Re: [autofs] LDAP Server
> 
> 
> On Thu, 2008-04-24 at 14:38 -0500, Young, Darren wrote:
> > Says:
> >
> > supportedSASLMechanisms: EXTERNAL
> > supportedSASLMechanisms: GSSAPI
> > supportedSASLMechanisms: DIGEST-MD5
> >
> > So I set autofs_ldap_auth.conf to:
> > <autofs_ldap_sasl_conf
> >         usetls="no"
> >         tlsrequired="no"
> >         authrequired="yes"
> >         authtype="DIGEST-MD5"
> >         user="cn=Directory Manager"
> >         secret="xxxxx"
> > />
> >
> > And get:
> > Apr 24 14:34:44 gsbtestfilervm automount[8097]: sasl_log_func: No
> worthy
> > mechs found
> > Apr 24 14:34:44 gsbtestfilervm automount[8097]: sasl_bind_mech:
> > sasl_client start failed with error: SASL(-4): no mechanism
> available:
> > No worthy mechs found
> > Apr 24 14:34:44 gsbtestfilervm automount[8097]: lookup_init:
> > lookup(ldap): cannot initialize authentication setup
> > Apr 24 14:34:44 gsbtestfilervm automount[8097]: lookup_read_master:
> > lookup(file): failed to read included master map auto.master
> 
> Odd, DIGEST-MD5 should work.
> What happens if you add the basedn bit to the user= setting?
> 
> >
> >
> > GSSAPI says:
> >
> > Apr 24 14:35:34 gsbtestfilervm pcscd: winscard.c:219:SCardConnect()
> > Reader E-Gate 0 0 Not Found
> > Apr 24 14:35:34 gsbtestfilervm last message repeated 3 times
> > Apr 24 14:35:34 gsbtestfilervm automount[8138]: sasl_do_kinit:
> > krb5_get_init_creds_keytab failed with error -1765328230
> > Apr 24 14:35:34 gsbtestfilervm automount[8138]: lookup_init:
> > lookup(ldap): cannot initialize authentication setup
> > Apr 24 14:35:34 gsbtestfilervm automount[8138]: lookup_read_master:
> > lookup(file): failed to read included master map auto.master
> >
> > I would imagine that's because the host isn't setup for Kerberos in
> any
> > way shape or form.
> 
> Yep, that's it.
> 
> >
> > > -----Original Message-----
> > > From: Jeff Moyer [mailto:[EMAIL PROTECTED]
> > > Sent: Thursday, April 24, 2008 2:20 PM
> > > To: Young, Darren
> > > Cc: [email protected]
> > > Subject: Re: [autofs] LDAP Server
> > >
> > > "Young, Darren" <[EMAIL PROTECTED]> writes:
> > >
> > > > Yep, sure can.
> > > >
> > > > ldapsearch -x -h <ldap_host> -D "cn=Directory Manager" -b
> > > > "o=gsb,dc=uchicago,dc=edu" -w <password>' uid=dyoung2 cn
> > >
> > > The "-x" option tells ldapsearch to use simple authentication (not
> > > SASL).  Can you specify a SASL mechanism (using -Y)?  To get a
list
> of
> > > supported mechanisms, you can look for 'supportedSASLMechanisms'
in
> > > your
> > > directory root.
> > >
> > > Cheers,
> > >
> > > Jeff
> >
> > _______________________________________________
> > autofs mailing list
> > [email protected]
> > http://linux.kernel.org/mailman/listinfo/autofs

_______________________________________________
autofs mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/autofs

Reply via email to