1 |
diff -Nur -x '*.orig' -x '*.rej' e-smith-samba-1.14.0/root/etc/e-smith/templates/etc/smb.conf/11adminUsers mezzanine_patched_e-smith-samba-1.14.0/root/etc/e-smith/templates/etc/smb.conf/11adminUsers |
2 |
--- e-smith-samba-1.14.0/root/etc/e-smith/templates/etc/smb.conf/11adminUsers 2005-02-18 08:28:18.000000000 -0700 |
3 |
+++ mezzanine_patched_e-smith-samba-1.14.0/root/etc/e-smith/templates/etc/smb.conf/11adminUsers 2007-10-26 07:52:44.000000000 -0600 |
4 |
@@ -1 +1,7 @@ |
5 |
-admin users = admin |
6 |
+{ |
7 |
+ $OUT = "admin users = admin"; |
8 |
+ |
9 |
+ use esmith::AccountsDB; |
10 |
+ my $adb = esmith::AccountsDB->open_ro(); |
11 |
+ $OUT .= " \@" . $_->key foreach $adb->get_all_by_prop( Description => 'Domain Admins' ); |
12 |
+} |