search for: get_user_dn2

Displaying 3 results from an estimated 3 matches for "get_user_dn2".

2002 Sep 08
2
sambaldap tools
...mba admins, I don?t know is this the right place for my question, but I can?t find a list for my problem. I have some trobble to configure the smbldap-tools. I have download and copy the scripts to /usr/local/sbin. But a /usr/local/sbin/smbldap-useradd.pl testuser breaks with this error message: get_user_dn2: error in ldapsearch : /usr/bin/ldapsearch -x -h _SLAVELDAP_ -D '_BINDDN_' -w '_BINDPW_' -b '_SUFFIX_' -s 'sub' '(&(objectclass=posixAccount)(uid=axel))' /usr/local/sbin/smbldap-useradd.pl: error in get_user_dn2 ldap_bind: Can't contact LDAP server H...
2006 Oct 10
1
cannot join to domain
...2415) _samr_create_user:Running the command '/usr/sbin/smbldap-useradd -w -i "hp-laptop"' gave 9 so I looked inside /usr/sbin/smbldap-useradd, I then found that the only exit that gave 9 was the following # user must not exist in LDAP (should it be nss-wide ?) my ($rc, $dn) = get_user_dn2($username); if ($rc and defined($dn)) { print "$0: user $username exists\n"; exit (9); I am now lost, as I understand it, root is the only way to join a domain and the dialog box on my windows machine says the user cannot be found, but smbldap-useradd seems to be saying because the...
2003 Nov 11
1
Samba 3 Redhat 9 Openldap doc
...upRid); } # Read only first @ARGV my $userName = $ARGV[0]; # untaint $userName (can finish with one or two $) if ($userName =~ /^([\w -]+\$?)$/) { $userName = $1; } else { print "$0: illegal username\n"; exit (1); } # user must not exist in LDAP (should it be nss-wide ?) my ($rc, $dn) = get_user_dn2($userName); if ($rc and defined($dn)) { print "$0: user $userName exists\n"; exit (9); } elsif (!$rc) { print "$0: error in get_user_dn2\n"; exit(10); } my $userHomeDirectory; my ($userCN, $userSN); my $tmp; if (!defined($userHomeDirectory = $Options{'d'})) { $userHomeD...