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

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
in slapd.conf).

$more /etc/openldap/schema/redhat/autofs.schema 
# Depends upon core.schema and cosine.schema

# OID Base is
# Attribute types are under
# Object classes are under
# Syntaxes are under

# Attribute Type Definitions

attributetype ( NAME 'automountInformation'
	DESC 'Information used by the autofs automounter'
	EQUALITY caseExactIA5Match

objectclass ( NAME 'automount' SUP top STRUCTURAL
	DESC 'An entry in an automounter map'
	MUST ( cn $ automountInformation )
	MAY ( description ) )

objectclass ( 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
> nisMapName=auto.misc,dc=mathematik,dc=uni-trier,dc=de
> 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
> (&(objectclass=nisObject)(cn=/))
>     (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
> schema.]
>  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>

Jehan Procaccia
Institut National des Telecommunications| Email:
MCI, Moyens Communs Informatiques	| Tel  : +33 (0) 160764436 
9 rue Charles Fourier 91011 Evry France | Fax  : +33 (0) 160764321