search for: connect_ldap_mast

Displaying 9 results from an estimated 9 matches for "connect_ldap_mast".

Did you mean: connect_ldap_master
2007 May 25
0
[new script] smbldap-userlist
...;UNIX password: "; system "stty -echo" if (-t STDIN); chomp($pass=<STDIN>); system "stty echo" if (-t STDIN); print "\n"; $config{masterDN}="uid=$user,$config{usersdn}"; $config{masterPw}="$pass"; $ldap_master=connect_ldap_master(); $dn=$config{masterDN}; if (!is_user_valid($user, $dn, $pass)) { print "Authentication failure\n"; exit (10); } } } else { # root user $ldap_master=connect_ldap_master(); # test existence of user in LDAP my $dn_line; } sub print_user { my ($entry...
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 => 'posixGroup&...
2007 Jan 27
0
debugging smbldap-useradd failures
...f{slaveDN}=$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 @@...
2003 Dec 30
1
sambaSamAccount versus SambaSAMAccount
...> "(&(objectClass=sambaSamAccount|objectClass=sambaGroupMapping)(sambaSID=$sid))" ); $mesg->code && die $mesg->error; $ldap_slave->unbind; @@ -333,7 +333,7 @@ my $ldap_master=connect_ldap_master(); my $modify = $ldap_master->modify ( "uid=$user,$computersdn", changes => [ - replace =&g...
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
2007 May 03
0
smbldap-tools Error in perl module decode.pm
...8d43d8)') called at /usr/lib/perl5/vendor_perl/5.8.6/Net/LDAP.pm line 363 Net::LDAP::bind('dn', 'cn=smbldap-tools,ou=DSA,dc=BIDCONST,dc=COM', 'password', 'secret') called at /usr/lib/perl5/vendor_perl/5.8.6/smbldap_tools.pm line 298 smbldap_tools::connect_ldap_master() called at /usr/sbin/smbldap-useradd line 76 This is on a stable system where it has been working. I upgraded from smbldap-tools-0.9.1-1 to smbldap-tools-0.9.2-3 which did not help. Samba, nis, are all working normally. I rebuilt the ldap database from a backup ldif file. Fedora core 4, [r...
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
2004 Nov 23
5
vampire fails because of Debian smbldap-tools problem
...ine 106, 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...
2003 Nov 11
1
Samba 3 Redhat 9 Openldap doc
...)); $_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, $userGidNumber)) { die...