[Samba] Domain Users and smbldap-useradd

John H Terpstra jht at Samba.Org
Mon Jul 4 15:34:07 GMT 2005


Michael,

Please email me your modified smbldap-tools.pm. I'd like to check this out and 
will then follow up with Jerome Tournier (author and maintainer of the 
smbldap-tools).

Thanks.

- John T.

On Monday 04 July 2005 08:01, Michael Gasch wrote:
> FYI: i had to change smbldap-tools a little bit
>
> function "sub group_add_user" in smbldap-tools.pm
>
> i used the scripts to vampire a NT PDC
> all users were added to the group "Domain Users" although it's there
> default group - thus i had 300 users in a group, which unecesarily took
> resources
>
> if ($is_member == 1) {
>            print "User \"$userid\" already member of the group
> \"$group\".\n";
>          } else {
>
> 		// new line
> 		if ($dn ne "cn=Domain Users,dc=....")   {
>
> 		//go on
>
> 		}
>
> greez
>
> --
> Michael Gasch
> Max Planck Institute for Evolutionary Anthropology
> Department of Human Evolution
> Deutscher Platz 6
> D-04103 Leipzig
> Germany
>
> Phone: 49 (0)341 - 3550 137

-- 
John H Terpstra
Samba-Team Member
Phone: +1 (650) 580-8668

Author:
The Official Samba-3 HOWTO & Reference Guide, ISBN: 0131453556
Samba-3 by Example, ISBN: 0131472216
Hardening Linux, ISBN: 0072254971
Other books in production.


More information about the samba mailing list