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

Re: automatic uidnumber overlay

Emmanuel Dreyfus wrote:
On Mon, Jun 09, 2008 at 09:30:24PM -0700, Howard Chu wrote:
Interesting. Perhaps instead, your overlay should just maintain a fixed
entry with a copy of the largest uidNumber in it, instead of searching the
entire tree all the time.

FWIW, I had the same need, plus allocating gidNumber, sambaSID and whatever. I do with with a dirty hack that filters the output of an accesslog overlay directed to a shell backend.

When I'll have some time, I'd like to write on a slapo-exec, to run
external scripts on various conditions. That would be much cleaner.

fork() is rather hazardous in a threaded program (which is one of the major problems with back-shell). Better to take the approach that back-sock uses, or just wrap some overlay glue around back-sock itself. (Much like slapo-chain is a simple wrapper around back-ldap.)
-- Howard Chu
CTO, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc/
Chief Architect, OpenLDAP http://www.openldap.org/project/