From 9b5d905ebe13bb9eb8d21120cd7fab3296f8fa82 Mon Sep 17 00:00:00 2001 From: Björn Jacke Date: Fri, 12 Jun 2009 18:39:31 +0200 Subject: examples:s2→s3-ldif-convert-script: fix objectclass recognition MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- examples/LDAP/convertSambaAccount | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples') 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; } } -- cgit