search for: ldap_master

Displaying 14 results from an estimated 14 matches for "ldap_master".

2007 Jan 27
0
debugging smbldap-useradd failures
...N}=$conf{slavePw}=$conf{masterDN}=$conf{masterPw}=""; + warn ("Could not open smbLdap_bind_conf file as user with uid $< is not root. Bind details not set\n"); } # automatically find SID if (not $conf{SID}) { @@ -278,6 +279,7 @@ sub connect_ldap_master { + my $mesg; # bind to a directory with dn and password my $ldap_master = Net::LDAP->new( "$config{masterLDAP}", @@ -288,16 +290,22 @@...
2007 May 25
0
[new script] smbldap-userlist
...rent_user = getpwuid($<); if ($current_user and $ARGV[0] and $current_user ne $ARGV[0] ) { die "Only root can change other users inormation\n"; } } else { if ( $ARGV[0] ) { $user = $ARGV[0]; } $pass = 1; } if (!defined($user)) { $user = getpwuid($<); } my ($dn,$ldap_master); # First, connecting to the directory if ($< != 0) { # non-root user if (!defined($pass)) { # prompt for password print "UNIX password: "; system "stty -echo" if (-t STDIN); chomp($pass=<STDIN>); system "stty echo" if (-t STDIN); p...
2003 Dec 30
1
sambaSamAccount versus SambaSAMAccount
...) + # 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 => [ - add => [objectClass => 'sambaSAMAccount&...
2005 May 26
1
Re: RE pdb_ldap.c, ldapsam_add_sam_account, existing poxisaccount
...t; > add theses lines after the > if (defined($Options{'i'})) { > > > ... > > } > > if (defined($Options{'w'})) { > # For machine account > # Objectclass sambaSAMAccount must be added now ! > > my $date=time; > my $modify = $ldap_master->modify ( > "uid=$userName,$config{computersdn}", > changes => [ > replace => [objectClass > => ['inetOrgPerson', 'posixAccount', 'sambaSAMAccount']]...
2005 Jun 04
3
smbldap-tools and joining workstation to domain
...chomp($pass2=<STDIN>); print "\n"; system "stty echo"; if ($pass ne $pass2) { print "New passwords don't match!\n"; exit (10); } my ($lmpassword,$ntpassword) = ntlmgen $pass; my $date=time; my $modify = $ldap_master->modify ( "uid=$userName,$config{computersdn}", changes => [ replace => [objectClass => ['inetOrgPerson', 'posixAccount', 'sambaSAMAccount']], add => [sambaLogonTime => '0'], add => [sambaLogoffTime...
2007 Dec 07
1
CentOP 5.1 Problem with smbldap-passwd
...can help me Tanks, Sebastian Here is the part of the file ////////////////////////////////////////////////////////////////////// # Update 'userPassword' field if ( $update_unix_passwd ) { my $shadowLastChange=int(time()/86400); my $modify; if ($< != 0) { $modify = $ldap_master->modify ( "$dn", changes => [ replace => [userPassword => "$hash_password"], replace => [shadowLastChange =&...
2003 Nov 25
0
Problems using smbldaptools
...{ if (!defined($force)) { if (defined(getgrgid($gid))) { return undef; } } } if ($nscd_status == 0) { system "/etc/init.d/nscd start > /dev/null 2>&1"; } my $ldap_master=connect_ldap_master(); my $modify = $ldap_master->add ( "cn=$gname,$groupsdn", attrs => [ objectClass =&gt...
2003 Oct 12
1
Error when creating user with Samba 3.0 & LDAP
Hy, I just install OpenLDAP 2.0 and Samba 3.0. (both from RPM). I used tools from idealx (found in src from Samba 3.0) to populate the ldap tree. My ldap is empty when i start, i just added index and samba.schema in slapd.conf. I used net rpc getsid to generate my domain SID and put in the smbldap_conf.pm with others options (dc, ou, dn etc.) I didn't get any error with this tool, it create
2003 Nov 11
1
Samba 3 Redhat 9 Openldap doc
...'c'})); $_skeletonDir = $tmp if (defined($tmp = $Options{'k'})); $userCN = ($Options{'c'} || $userName); $userCN = $tmp if (defined($tmp = $Options{'N'})); $userSN = $userName; $userSN = $tmp if (defined($tmp = $Options{'S'})); ######################## my $ldap_master=connect_ldap_master(); # MACHINE ACCOUNT if (defined($tmp = $Options{'w'})) { # add a trailing dollar if missing if ($userName =~ /[^\$]$/s) { $userName .= "\$"; } #print "About to create machine $userName:\n"; if (!add_posix_machine ($userName, $userUidNumber, $user...
2005 Aug 11
4
smbldap-tools unresovled problem.
...for # group of gidNumber=$userGidNumber $group_entry = read_group_entry_gid($userGidNumber); @@ -265,6 +265,28 @@ $modify->code && die "failed to add entry: ", $modify->error ; } + + if (defined($Options{'w'})) { + my $date=time; + my $modify = $ldap_master->modify ( "uid=$userName,$config{computersdn}", + changes => [ + replace => [objectClass => ['inetOrgPerson', 'posixAccount', 'sambaSAMAccount']], +...
2004 Nov 03
2
Samba3 + LDAP - troubles joining domain (have to do it twice)
Hello, I have the following test setup: 1) Samba3 + slave OpenLDAP - the same PC, win2k in same LAN 2) OpenLDAP master OpenLDAP slave and master are divided by a rather slow internet VPN link. Whenever I want to add a PC to a domain, I have to do it twice - with first time I get an error on a client side, second join is successful. I guess it's because master and slave are divided by
2003 Dec 22
2
smbldap Tools problem
Hi all! I want to thanks all people here for their help, good job guys! :o) And nox, it's my question: I'm using smbldap-tools 0.8.2 from samba.idealx.org. In all the docs I read about it, I read that I must put these lines in smb.conf: passwd program = /usr/local/sbin/smbldap-passwd.pl -o %u passwd chat = *new*password* %n\n *new*password* %n\n *successfully* I look in the code of
2004 Jul 23
2
Base ldap access file.
Hi, Having set up a few Samba-ldap installations, I always end up with the feeling that OpenLDAP ACLs is what took time. The following patches / scripts might help someone else. I would appreciate some input on the access.conf.pl file so that it is even better tuned. Mr Tournier and the sambateam: Please include the files you find usefull. The attached files are: slapd.conf.pl : A simple
2004 Nov 23
5
vampire fails because of Debian smbldap-tools problem
...has this: 101 sub subst_configvar 102 { 103 my $value = shift; 104 my $vars = shift; 105 106 $value =~ s/\$\{([^}]+)\}/$vars->{$1} ? $vars->{$1} : $1/eg; 107 return $value; 108 } 109 /usr/share/perl5/smbldap_tools.pm line 153 Says this: 150 sub connect_ldap_master 151 { 152 # bind to a directory with dn and password 153 my $ldap_master = Net::LDAP->new( 154 154 "$config{masterLDAP}", These are the files provided by Debian sarge with an apt-get install smbldap-tools. And libnet-ldap-perl has been installed. I don't know w...