summaryrefslogtreecommitdiff
path: root/examples/LDAP/smbldap-tools/smbldap_tools.pm
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2004-01-06 14:40:35 +0000
committerGerald Carter <jerry@samba.org>2004-01-06 14:40:35 +0000
commitdb21c4e3367a6a987eca1df1629b4ff92350a348 (patch)
tree0e604a7df66ec74f6a10d6352d10da06d33e38f3 /examples/LDAP/smbldap-tools/smbldap_tools.pm
parent18a4994e922f18a9912e7f895552548b566afa8b (diff)
downloadsamba-db21c4e3367a6a987eca1df1629b4ff92350a348.tar.gz
samba-db21c4e3367a6a987eca1df1629b4ff92350a348.tar.bz2
samba-db21c4e3367a6a987eca1df1629b4ff92350a348.zip
fix case in objectclass name (not that it really matters); patch from Darren Chew <darrenc@vicscouts.asn.au>
(This used to be commit 86e0015b06eb9590a6a3e64cb4fe5a88a9f156c2)
Diffstat (limited to 'examples/LDAP/smbldap-tools/smbldap_tools.pm')
-rwxr-xr-xexamples/LDAP/smbldap-tools/smbldap_tools.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/LDAP/smbldap-tools/smbldap_tools.pm b/examples/LDAP/smbldap-tools/smbldap_tools.pm
index 527dd8390f..d33a65b7d1 100755
--- a/examples/LDAP/smbldap-tools/smbldap_tools.pm
+++ b/examples/LDAP/smbldap-tools/smbldap_tools.pm
@@ -239,7 +239,7 @@ sub does_sid_exist
my $mesg = $ldap_slave->search ( base => $dn_group,
scope => $scope,
filter => "(sambaSID=$sid)"
- #filter => "(&(objectClass=sambaSAMAccount|objectClass=sambaGroupMapping)(sambaSID=$sid))"
+ #filter => "(&(objectClass=sambaSamAccount|objectClass=sambaGroupMapping)(sambaSID=$sid))"
);
$mesg->code && die $mesg->error;
$ldap_slave->unbind;
@@ -333,7 +333,7 @@ sub add_samba_machine_mkntpwd
my $ldap_master=connect_ldap_master();
my $modify = $ldap_master->modify ( "uid=$user,$computersdn",
changes => [
- replace => [objectClass => ['inetOrgPerson', 'posixAccount', 'sambaSAMAccount']],
+ replace => [objectClass => ['inetOrgPerson', 'posixAccount', 'sambaSamAccount']],
add => [sambaPwdLastSet => '0'],
add => [sambaLogonTime => '0'],
add => [sambaLogoffTime => '2147483647'],