summaryrefslogtreecommitdiff
path: root/examples/LDAP
diff options
context:
space:
mode:
authorBjörn Jacke <bj@sernet.de>2009-06-12 18:39:31 +0200
committerBjörn Jacke <bj@sernet.de>2009-06-12 18:46:46 +0200
commit9b5d905ebe13bb9eb8d21120cd7fab3296f8fa82 (patch)
treeec100b17de3816408aa612e088ab8074a2fec8a1 /examples/LDAP
parent89aed2771c227192652bd4e28cffd7094f34e1db (diff)
downloadsamba-9b5d905ebe13bb9eb8d21120cd7fab3296f8fa82.tar.gz
examples:s2→s3-ldif-convert-script: fix objectclass recognition
objectclasses are case insensitive. we used to convert only LDAP objects with the typical UpperLower case for sambaAccount and sambaGroupMapping and ignored any other case writings
Diffstat (limited to 'examples/LDAP')
-rwxr-xr-xexamples/LDAP/convertSambaAccount4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/LDAP/convertSambaAccount b/examples/LDAP/convertSambaAccount
index 4357dbc8f8d..8b522ef8ae8 100755
--- a/examples/LDAP/convertSambaAccount
+++ b/examples/LDAP/convertSambaAccount
@@ -156,9 +156,9 @@ while ( !$ldif->eof ) {
@adds = ();
@dels = ();
foreach $obj ( @objclasses ) {
- if ( "$obj" eq "sambaAccount" ) {
+ if ( lc($obj) eq "sambaaccount" ) {
$is_samba_account = 1;
- } elsif ( "$obj" eq "sambaGroupMapping" ) {
+ } elsif ( lc($obj) eq "sambagroupmapping" ) {
$is_samba_group = 1;
}
}