From: Björn Jacke Date: Fri, 12 Jun 2009 16:39:31 +0000 (+0200) Subject: examples:s2→s3-ldif-convert-script: fix objectclass recognition X-Git-Tag: tdb-1.1.5~40 X-Git-Url: http://git.samba.org/samba.git/?p=sfrench%2Fsamba-autobuild%2F.git;a=commitdiff_plain;h=9b5d905ebe13bb9eb8d21120cd7fab3296f8fa82 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 --- 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; } }