Domino and LDAP integration - how to let multiple LDAP user id's masquerade as one Domino user

I have to make an existing Domino application (3 nsf’s) on a dedicated server to use an external LDAP directory server for authentication, instead of the Domino NAB that is currently in place.

The problem I have is that the existing web id’s in the NAB have been issued to departments rather than individuals, while the new LDAP identities have been issued to each person.

To make the problem more interesting (read: challenging), each document in the database has authors and readers field, stamped with the (department) web id’s.

I see two easy (and messy) solutions;

  1. stamp all individual LDAP id’s that belong to one department, into all documents owned by the department id; or

  2. create NAB groups - one group per department, put LDAP users into the NAB groups, then create as many roles in ACL as the number of groups - and associate the department groups with department roles, then stamp the department roles in authors/readers field.

I don’t think option #2 above is feasible in my case though as there are thousands of departments (the word ‘department’ is used here as an example you see - so my REAL environment does have thousands of department-equivalent). I’m not sure if Notes DBs will cope with that many roles, and also the process of adding roles into ACL will be an outrageously arduous. Also I have limited privileges and modifying ACL is usually a no-no, let alone having to worry about ‘Enforce Consistent ACL’.

Is there a more graceful way for an authenticated user to masquarade as if he/she was someone/something else? ie. Once the users have authenticated with LDAP, can Domino treat them as someone else (in this case, the existing department id - hence avoiding re-stamping of user id’s in authors/readers fields).

For example… if department ‘Human Resources’ had users ‘Jim’, ‘Tom’, ‘Rob’, there would be an existing department web id called ‘human_resources’, and LDAP would have ‘Jim’, ‘Tom’, ‘Rob’ respectively in their specified DN format. Now, when ‘Jim’ authenticates against LDAP and access the application, can I somehow make Domino treat him as ‘human_resources’ ? This would be the case for ‘Tom’ and ‘Rob’.

I am experimenting with the idea of adding the LDAP names (Jim, Tom and Rob in the abovementioned example) to the person document of department web id (human_resources in the example above) in Domino NAB as alternate names. Unfortunately I haven’t really had any breakthrough yet.

It would have made my life alot easier if I could use NAB group names in the Authors/Readers field, but this cannot be done to the best of knowledge.