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:
parent
89aed2771c
commit
9b5d905ebe
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user