Subject: How to create LDAP mapping for custom attribute
New to Notes. I have created a custom entry in the Notes database called memberOf and wants to map it to the LDAP server so that its search able from the LDAP interface. The documentation that I have read mentioned to put it in the schema database. I made a copy of the schema database and tried to add an entry but always error out. Is there a proper instruction on how to do this mapping?
Are you planning on maintaining this “memberOf” attribute with a program?
What will be the relationship between entries with this “memberOf” field and the Members of a Domino Group document?
Will you also make sure that the Group document’s Members fields reflect your memberOf scheme?
I’ll assume you plan on using your Domino directory Groups for purposes other than strictly for you app that uses memberOf, in which case you must maintain both Group.Members and Person.memberOf.
I infer that you have custom (probably ADSI) coded applications that take advantage of memberOf?
memberOf is not in any RFC. Active Directory has a memberOf attribute which only indicates direct group membership - Group Objects - Win32 apps | Microsoft Learn.
Domino (and other vendors) map the Group document to groupOfNames described in http://www.ietf.org/rfc/rfc2256.txt
It is not uncommon for LDAP client applications to have to adjust themselves to different vendor’s schemas. They typically do so with a configuration file. A common misconception is that because two vendors offer LDAPv3 services you can program them in the same way. This is rarely the case because of schema differences
Since groupOfNames is in rfc2256, a fairly universal way to query direct (non-nested) group membership is using something like this, which Domino services efficiently (AD does not, so they invented memberOf)
(&(objectClass=groupOfNames)(member=memberdn))
In the “Collaborative Cuisine” article mentioned in “Domino Directory FAQ” (google it) we describe how to unwind nested groups.
The documentation doesn’t give proper steps on how to do this. Don’t know what syntax name for the new document needs to be. It errors out complaining about the type. Tied to copy and existing entry but it won’t allow me to edit the pasted entry.
If you determine you really want to add this attribute, the syntax type should probably be a Name (I forget if we offer it as a Notes or LDAP name) since it is the value is presumably the name of a Group.