search for: useruidnumb

Displaying 11 results from an estimated 11 matches for "useruidnumb".

Did you mean: useruidnumber
2004 Feb 17
1
smbldap-tools: only incremental UID's?
Hi, In smbldap-useradd.pl is a pice of code, which find the first unused uid starting from $UID_START (for example 1000). if (!defined($userUidNumber)) { # find first unused uid starting from $UID_START while (defined(getpwuid($UID_START))) { $UID_START++; } I've over 500 UID's in use (maximum UID is 1547). It works well, until you delete an user. After deleting an user, there comes a random uid available between 1000 an...
2004 Jan 14
0
Problems with smbldap-tools 0.8.2 and Samba 3
...004/01/14 18:15:49, 0] pc_server/srv_samr_nt.c:_samr_create_user(2330) could not add user/computer nodo03$ to passdb. Check permissions? ------ This is the problematic (I think) piece of smbldap-useradd.pl ###### Here the posixAccount is added ######## if (!add_posix_machine ($userName, $userUidNumber, $userGidNumber)) { die "$0: error while adding posix account\n"; } if (!$with_smbpasswd) { ### The script "executes" this branch, so nothing is done. It expects ### Samba to add the sambaSAMAccount, but I think that Samba fails to ### do it because a...
2003 Nov 11
1
Samba 3 Redhat 9 Openldap doc
...use problems when dealing with getpwuid because of the # negative ttl and ldap modification my $nscd_status = system "/etc/init.d/nscd status >/dev/null 2>&1"; if ($nscd_status == 0) { system "/etc/init.d/nscd stop > /dev/null 2>&1"; } # Read options my $userUidNumber = $Options{'u'}; if (!defined($userUidNumber)) { my ($highestUID) = get_last_user_ID(); $UID_START = $highestUID + 1; $userUidNumber = $UID_START; #print " UID # is ..$UID_START"; # find first unused uid starting from $UID_START # while (defined(getpwuid($UID_START))) { # $UID_S...
2006 Feb 10
0
Upgraded from 3.0.9 -> 3.0.21b - Now adding machines a problem
...eradd script and realized that the add_samba_machine call from the tools.pm file was never getting called anywhere in the scripts so maybe this is incorrect but I added the following to the smbldap-useradd script: if (defined($Options{'w'})) { if (!add_samba_machine($userName,$userUidNumber,$Options{'t'})) { die "$0: error while adding samba account\n"; } } right under the following: # MACHINE ACCOUNT if (defined($Options{'w'}) or defined($Options{'i'})) { #print "About to create machine $userName:\n"; if (!ad...
2006 Feb 10
0
Upgraded from 3.0.9 -> 3.0.21b - Now adding machines aproblem
...eradd script and realized that the add_samba_machine call from the tools.pm file was never getting called anywhere in the scripts so maybe this is incorrect but I added the following to the smbldap-useradd script: if (defined($Options{'w'})) { if (!add_samba_machine($userName,$userUidNumber,$Options{'t'})) { die "$0: error while adding samba account\n"; } } right under the following: # MACHINE ACCOUNT if (defined($Options{'w'}) or defined($Options{'i'})) { #print "About to create machine $userName:\n"; if (!ad...
2005 May 26
1
Re: RE pdb_ldap.c, ldapsam_add_sam_account, existing poxisaccount
...samba to > > do the rest... > > > > # MACHINE ACCOUNT > > if (defined($Options{'w'}) or defined($Options{'i'})) { > > > > #print "About to create machine $userName:\n"; > > > > if (!add_posix_machine > > ($userName,$userUidNumber,$userGidNumber,$Options{'t'})) { > > die "$0: error while adding posix account\n"; > > } > > > > if (defined($Options{'i'})) { > > ... > > } > > > > $ldap_master->unbind; > > exit 0; > > } > &g...
2005 Jun 04
3
smbldap-tools and joining workstation to domain
...nly added when -i switch is used (trusted workstation account). ----------- CODE SNIP -------------------- # MACHINE ACCOUNT if (defined($Options{'w'}) or defined($Options{'i'})) { #print "About to create machine $userName:\n"; if (!add_posix_machine ($userName,$userUidNumber,$userGidNumber,$Options{'t'})) { die "$0: error while adding posix account\n"; } if (defined($Options{'i'})) { # For machine trust account # Objectclass sambaSAMAccount must be added now ! my $pass; my $pass2; system "stty -echo...
2003 Dec 30
1
sambaSamAccount versus SambaSAMAccount
...mbpasswd) { # (jtournier) - # Objectclass sambaSAMAccount is now added directly by samba when joigning the domain (for samba3) + # Objectclass sambaSamAccount is now added directly by samba when joigning the domain (for samba3) #if (!add_samba_machine_mkntpwd($userName, $userUidNumber)) { # die "$0: error while adding samba account\n"; #} @@ -312,7 +312,7 @@ my $modify = $ldap_master->modify ( "uid=$userName,$usersdn", changes => [ -...
2002 May 14
0
Bugfix for idealx smbldap-tools
...print " -c Comment/gecos\n"; print " -m creates home directory and copies /etc/skel\n"; print " -k skeleton dir (with -m)\n"; print " -P ends by invoking smbldap-passwd.pl\n"; @@ -95,7 +95,7 @@ # as rid we use 2 * uid + 1000 my $userRid = 2 * $userUidNumber + 1000; if (defined($Options{'x'})) { - $userRid= sprint("%x", $userRid); + $userRid= sprintf("%x", $userRid); } my $createGroup = 0; @@ -131,7 +131,7 @@ # as grouprid we use 2 * gid + 1001 my $userGroupRid = 2 * $userGidNumber + 1001; if (defined($Option...
2006 Oct 09
1
Unable to add an xp machine to my domain
Hi there, I've been going through the samba 3 by example book and have now successfully replaced my NT 4 PDC with a Linux machine running samba and an LDAP backend. Beautiful. However, I've run into a slight problem. When I try and add a new XP pro machine to my domain, I get the following message: A domain controller for the domain TEST could not be contacted. After doing some
2005 Aug 11
4
smbldap-tools unresovled problem.
...y->error ; + } $ldap_master->unbind; exit 0; @@ -311,11 +333,7 @@ system "mkdir $userHomeDirectory 2>/dev/null"; system "cp -a $config{skeletonDir}/.[a-z,A-Z]* $config{skeletonDir}/* $userHomeDirectory 2>/dev/null"; system "chown -R $userUidNumber:$userGidNumber $userHomeDirectory 2>/dev/null"; - if (defined $config{userHomeDirectoryMode}) { - system "chmod $config{userHomeDirectoryMode} $userHomeDirectory 2>/dev/null"; - } else { - system "chmod 700 $userHomeDirectory 2>/dev/n...