[Date Prev][Date Next]
Re: again autofs and OpenLDAP integration
Christian Michels a écrit :
> Hello everybody!
> I'm running SuSE 7.2 with openldap 2.0.11 and autofs-3.1.7.
> I'm not shure if this is the right list to post my question to. However,
> I've read the postings about autofs and OpenLDAP integration by Jehan
> Proaccia and Nalin Dahyabhai in this list. So please forgive me for
> nagging again.
> Because I don't have a schema with objectClass: automount
Here with openldap 2.0.11 I have an autofs schema (from redhat I
presume, seeing the directory it is in, of course you have to include it
# Depends upon core.schema and cosine.schema
# OID Base is 126.96.36.199.4.1.2312.4
# Attribute types are under 188.8.131.52.4.1.2312.4.1
# Object classes are under 184.108.40.206.4.1.2312.4.2
# Syntaxes are under 220.127.116.11.4.1.2312.4.3
# Attribute Type Definitions
attributetype ( 18.104.22.168.22.214.171.124 NAME 'automountInformation'
DESC 'Information used by the autofs automounter'
SYNTAX 126.96.36.199.4.1.14188.8.131.52.26 SINGLE-VALUE )
objectclass ( 184.108.40.206.220.127.116.11 NAME 'automount' SUP top STRUCTURAL
DESC 'An entry in an automounter map'
MUST ( cn $ automountInformation )
MAY ( description ) )
objectclass ( 18.104.22.168.4.1.2322.214.171.124 NAME 'automountMap' SUP top
DESC 'An group of related automount objects'
MUST ( ou ) )
>I tried using
> the nis schema. Somewhere on the internet (i forgot the adress) I found
> a hint for achieving this.
> [Basically it says that you have to replace objectClass: automount
> with objectClass: nisObject and automountInformation with nisMapEntry in
> the sources of
> autofs (it's in modules/lookup_ldap.c).]
> At this point my automounter started up with LDAP for the first time:
> (Before this it didn't start at all):
> /usr/sbin/automount /misc ldap
> When I do a `ls /misc/cd` it doesn't work.
> [I have the same Problem as mentioned in the postings of Jehan
> Proaccia: lookup(ldap): got answer, but no first entry for
> (n.B.: it's nisObject here because I use the nis schema!). I have an
> entry of the form
> cn=cd,nisMapName=auto.misc,dc=mathematik,dc=uni-trier,dc=de. So I
> presume this is not source of the error. Probably I misconfigured
> something else because I lost the exact description of how using the nis
> I think it would be better to start again with the schema used the
> recent postings. So does anybody know where to get a schema with
> objectClass: automount? Or has anyone seen the description of using the
> nis schema for autofs with OpenLDAP?
> Thanks for your help,
> Christian Michels <ChristianMichels@web.de>
Institut National des Telecommunications| Email:
MCI, Moyens Communs Informatiques | Tel : +33 (0) 160764436
9 rue Charles Fourier 91011 Evry France | Fax : +33 (0) 160764321