Refactored the code that adds Domain Admins to BUILTIN\Administrators to use the...
commitf6411ccb4a1530034e481e1c63b6114a93317b29
authorTim Prouty <tim.prouty@isilon.com>
Thu, 24 Jul 2008 03:42:32 +0000 (23 20:42 -0700)
committerJeremy Allison <jra@samba.org>
Wed, 30 Jul 2008 21:06:15 +0000 (30 14:06 -0700)
tree7b09f620aa000b393e4db24067df9fdcda1f33fc
parent8d75d40b9f6d22bae7430211f8a1fe99051b756c
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.
source/auth/token_util.c