diff options
author | Michael Adam <obnox@samba.org> | 2009-02-02 00:36:59 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2009-02-02 00:53:05 +0100 |
commit | a0d05192006c4bade760bd945ab91b5268ca47a6 (patch) | |
tree | 9479e0a9f61826af50fcf1f0aff64570a9b0a276 /source3/registry/reg_backend_perflib.c | |
parent | 8c57f34b99b9bd587e1c2be0905a8c41eebbd568 (diff) | |
download | samba-a0d05192006c4bade760bd945ab91b5268ca47a6.tar.gz samba-a0d05192006c4bade760bd945ab91b5268ca47a6.tar.bz2 samba-a0d05192006c4bade760bd945ab91b5268ca47a6.zip |
s3:winbind_user: fix "getent passwd" to allocate new uids.
"getent passwd" used to fill the idmap cache with negative
cache entries for unmapped user sids.
Don't pass domain name unconditionally to idmap_sid_to_[ug]id().
idmap_sid_to_[ug]id() only creates new mappings (allocating
idmap backends tdb, tdb2, ldap...) when the domain name passed
in is "".
Note that it is _wrong_ to directly call the idmap_sid_to_[ug]id()
functions here, in the main winbindd. The correct fix would be
to send a sid_to_[ug]id request to winbindd itself, but this needs
more work to prepare the async mechanisms, and we nee a quick
fix for getent passwd now.
Michael
Diffstat (limited to 'source3/registry/reg_backend_perflib.c')
0 files changed, 0 insertions, 0 deletions