On Thu, 2006-07-06 at 01:50 -0400, Daniel Richard G. wrote:
> Does there exist a standard(ish) LDAP schema for AFS mounts?
> 
> I'm familiar with the Hesiod record format, along the lines of e.g.
> 
>       AFS /afs/athena.mit.edu/contrib/sipb n /mit/sipb 1
>       AFS /afs/athena.mit.edu/user/y/o/yoav w /mit/yoav
> 
> (and supported by the Hesiod lookup module), but I'm interested in pulling 
> this same sort of information via LDAP.

I'm not familiar with the hesoid system but I assume that in the record
above we have:

AFS -> filesystem type
/afs/athena.mit.edu/user/y/o/yoav -> filesystem
w -> read/write option rw

The last field is confusing but it may be the key used by hes_resolve?
If so for autofs it would not normally be a path but a component such as
yoav here.

So you could store this in LDAP by one of the schema such as the NIS
schema by setting attributes for a distinguished name like:

dn: cn=yoav,nisMapName=mymap,dc=dncom1,dc=dncomp2:

as

cn: yoav
nisMapEntry: AFS /afs/athena.mit.edu/user/y/o/yoav w

and using something like:

/mymount        ldap,hesoid://server/nasMapName=mymap,dc=my,dc=dnname

as a master map entry.

There's a fair bit of detail left out because I'm not sure about it so
there would have to be some trial and error. But the ",hesoid" will send
the entry to the hesoid parser instead of the sun parser in the same way
as the hesoid lookup module does.

Ian

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

Reply via email to