new ldb group mapping code

Gerald (Jerry) Carter jerry at samba.org
Wed Sep 27 03:51:38 GMT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

tridge at samba.org wrote:

> I guess we could have some sort of ldb_set_umask() call after
> ldb_init() and before ldb_connect() instead. Then we could make
> 'normal' ldb usage obey posix conventions and make smbd call
> ldb_set_umask() to allow it continue with its wicked ways.

This seems a little hackish and prone to error.  I would have
to make two steps and think about their interaction if I wanted to
create an ldb with mode 0600.  What is wrong with simply specifying
a way to define the mode in the ldb_connect().  I know that's
not elegant either.  But for processes like smbd that may need to
create file with different permissions, the umask() method
is error prone IMO.



cheers, jerry
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFGfVKIR7qMdg1EfYRAlm4AJ9m17rHaHtciLpYPRZ5DZVfG5cREgCfazmM
DGRAdbioy6G7zXUEqYZvIsk=
=EiJA
-----END PGP SIGNATURE-----


More information about the samba-technical mailing list