[Samba] Script to reset group memberships...
Marco Gaiarin
gaio at sv.lnf.it
Thu Oct 5 13:22:56 UTC 2017
Mandi! Rowland Penny via samba
In chel di` si favelave...
> In AD you can disable a user very easily by adding 2 to the value stored
> in the users 'userAccountControl' attribute and the user wouldn't be
> able to log in, but this isn't quite what you want.
Only for a sake of completeness, it is the same of the 'D' account flag,
right?
> To do what you want to do, you will need to search the users object in
> AD for 'memberOf' attributes, then parse these (if any, there shouldn't
> be one for Domain Users) Then remove the user from each group with
> 'samba-tool group removemembers groupname username'. This will then
> leave you with the user to delete or disable as you see fit.
OK, thanks.
--
dott. Marco Gaiarin GNUPG Key ID: 240A3D66
Associazione ``La Nostra Famiglia'' http://www.lanostrafamiglia.it/
Polo FVG - Via della Bontà , 7 - 33078 - San Vito al Tagliamento (PN)
marco.gaiarin(at)lanostrafamiglia.it t +39-0434-842711 f +39-0434-842797
Dona il 5 PER MILLE a LA NOSTRA FAMIGLIA!
http://www.lanostrafamiglia.it/index.php/it/sostienici/5x1000
(cf 00307430132, categoria ONLUS oppure RICERCA SANITARIA)
More information about the samba
mailing list