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

Re: (ITS#4719) Support for running slapadd/slapindex as a user

Kurt@OpenLDAP.org wrote:
> At 11:48 AM 10/24/2006, ando@sys-net.it wrote:
>> quanah@stanford.edu wrote:
>>> It would be nice if you could pass -u and -g options to run as another
>>> user/group so that on systems where OpenLDAP is running as another user or
>>> group, the files created by slapadd & slapindex have the correct ownerships
>>> (rather than root, for example).
>> OK for slapadd; for slapindex and other tools, what about using 
>> user/group info from the file(s) itself?
> Why not just use su(1)?  the only reason slapd(8) has -u/-g options
> is because it changes root after some initialization. 

Agreed. As for using info from the files themselves - that requires 
per-backend functions to return the user/group info. Seems like 
unnecessary effort.
   -- Howard Chu
   Chief Architect, Symas Corp.  http://www.symas.com
   Director, Highland Sun        http://highlandsun.com/hyc
   OpenLDAP Core Team            http://www.openldap.org/project/