Refactored the code that adds Domain Admins to BUILTIN\Administrators to use the...
authorTim Prouty <tim.prouty@isilon.com>
Thu, 24 Jul 2008 03:42:32 +0000 (20:42 -0700)
committerJeremy Allison <jra@samba.org>
Wed, 30 Jul 2008 21:06:15 +0000 (14:06 -0700)
commitbbb02aa8e925774532376b6a6218a4cbbb708c38
tree2527938c1150c57f0ec21404447c5170e443c9ea
parentfb41bb762f1d9b1623c4fe6179bebbe4de2e2440
Refactored the code that adds Domain Admins to BUILTIN\Administrators to use the new helper functions.

- Modified create_builtin_administrators and add_builtin_administrators to take
in the domain sid to reduce the number of times it needs to be looked up.
- Changed create_builtin_administrators to call the new helper functions.
- Changed create_local_nt_token to call the new version of
create_builtin_administrators and handle the new error that can be returned.
- Made it more explicit that add_builtin_administrators is only called when
winbindd can't be pinged.
(This used to be commit f6411ccb4a1530034e481e1c63b6114a93317b29)
source3/auth/token_util.c