diff options
author | Björn Jacke <bj@sernet.de> | 2009-06-12 18:39:31 +0200 |
---|---|---|
committer | Björn Jacke <bj@sernet.de> | 2009-06-12 18:46:46 +0200 |
commit | 9b5d905ebe13bb9eb8d21120cd7fab3296f8fa82 (patch) | |
tree | ec100b17de3816408aa612e088ab8074a2fec8a1 /examples/LDAP/convertSambaAccount | |
parent | 89aed2771c227192652bd4e28cffd7094f34e1db (diff) | |
download | samba-9b5d905ebe13bb9eb8d21120cd7fab3296f8fa82.tar.gz samba-9b5d905ebe13bb9eb8d21120cd7fab3296f8fa82.tar.bz2 samba-9b5d905ebe13bb9eb8d21120cd7fab3296f8fa82.zip |
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/convertSambaAccount')
-rwxr-xr-x | examples/LDAP/convertSambaAccount | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/LDAP/convertSambaAccount b/examples/LDAP/convertSambaAccount index 4357dbc8f8..8b522ef8ae 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; } } |