1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-21 18:04:06 +03:00

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
This commit is contained in:
Björn Jacke 2009-06-12 18:39:31 +02:00
parent 89aed2771c
commit 9b5d905ebe

View File

@ -156,9 +156,9 @@ while ( !$ldif->eof ) {
@adds = (); @adds = ();
@dels = (); @dels = ();
foreach $obj ( @objclasses ) { foreach $obj ( @objclasses ) {
if ( "$obj" eq "sambaAccount" ) { if ( lc($obj) eq "sambaaccount" ) {
$is_samba_account = 1; $is_samba_account = 1;
} elsif ( "$obj" eq "sambaGroupMapping" ) { } elsif ( lc($obj) eq "sambagroupmapping" ) {
$is_samba_group = 1; $is_samba_group = 1;
} }
} }