On Sun, 11 Mar 2007 18:31:44 -0700
David King <[EMAIL PROTECTED]> wrote:

> I'm working on implementing LDAP on my small 7-user home-network as
> a learning practice. Eventually, I want to set up LDAP so that I
> can write an open-source LDAP-to-OpenID bridge. I'm using OpenLDAP
> 2.3, and if these questions are better directed at that list let me
> know.
> 
> It's been pretty easy so far (I've used LDAP as a programmer, but
> not implemented it from scratch as an administrator), but I'm
> hitting a wall that's basically just a lack of knowledge about how
> LDAP implements (or can implement) groups.

Go nss and pull it from the OS.

> One application that I use wants groups to have a multivalued  
> attribute containing the DN of each of its members. Another one  
> (nss_ldap on FreeBSD) wants groups to have a multivalued attribute  
> containing the UID of of each of its members (POSIX-style groups).

I am really curious on what is going on here. Sounds like that one
program is badly designed if it tries to pull group info that way
instead of from the OS.

> 1. I'd like to avoid duplicating this information over two
> attributes 2. I'd really rather store the (unchanging) principalid
> of each user and somehow have a dynamic attribute that will return
> the memberuid or memberdn of each member when asked for these
> attributes. 3. It might also be possible to convince nss_ldap to
> determine groups based on a different attribute than the memberuid.
> Is it? 4. I'd like to have somehow have referential integrity (like
> foreign keys in SQL) that ensures that a given member actually
> exists on creation. Is that possible in OpenLDAP?

1: Does not sound possible in this case do to what sounds like crappy
design of a program to stupid to properlly retrieve group info.
2: Not sure what you are asking.
3: AFAIK it is possible and easy. There should be a option for that
in the config, but why?
4: Not on any LDAP server I am aware of.

> I'd be willing to give up any of these if it makes my schema more  
> common or standard, and likely to work with more applications in
> the future that I might try out (drupal, GUI LDAP tools, sendmail,
> etc). Having a weird or nonstandard LDAP schema seems like a bad
> thing, especially if it's because I made it because I didn't
> understand The LDAP Way(tm)
> 
> I've read a number of LDAP-related articles and most seem to walk
> me through setting up POSIX style groups, which may be the easiest
> to set up but seems to be the hardest to use in real applications  
> outside of nss_ldap. Does the answer lie in the inetorgperson,  
> Cosine, or OpenLDAP schemas, or something similar?

In most cases you will want POSIX groups.  LDAP groups are largely
for administrative purposes... for like assign read write permissions
to stuff. If you have openldap installed, check out slapd.access(5).

> Is there a simple article that I can read that can tell me about
> this stuff? It seems that most articles online assume that I'm an
> LDAP guru or totally new to the idea of directory services, with no
> in- between. Are there any recommendable books directed at this  
> intermediate level of skill?

POSIX groups are cool. I also suggest using nss_ldap instead of
having a application try to talk directly to 

Attachment: signature.asc
Description: PGP signature

Reply via email to