From: Gerald Carter Date: Sat, 20 Sep 2003 15:29:27 +0000 (+0000) Subject: fix from Brad Langhorst to correctly check if the primaryGroupID has been set X-Git-Tag: samba-4.0.0alpha6~801^2~11793^2~701 X-Git-Url: http://git.samba.org/samba.git/?a=commitdiff_plain;h=ccb7f73f2370eaa4b9ba3d23e928a39cd4aa011e;p=gd%2Fsamba-autobuild%2F.git fix from Brad Langhorst to correctly check if the primaryGroupID has been set (This used to be commit db0d8f76ba9fbd090b62cb1233b566040e36f552) --- diff --git a/examples/LDAP/convertSambaAccount b/examples/LDAP/convertSambaAccount index d2770c75a68..e00d0a2326e 100755 --- a/examples/LDAP/convertSambaAccount +++ b/examples/LDAP/convertSambaAccount @@ -170,7 +170,7 @@ while ( !$ldif->eof ) { $entry->add( 'sambaSID' => $domsid."-".$entry->get_value( "rid" ) ); $entry->delete( 'rid' ); - if ( $entry->get_value( "primaryGroupID" ) ) { + if ( defined($entry->get_value( "primaryGroupID" )) ) { push @adds, "sambaPrimaryGroupSID: " . $domsid."-".$entry->get_value( "primaryGroupID" ); push @dels, "primaryGroupID"; $entry->add( 'sambaPrimaryGroupSID' => $domsid."-".$entry->get_value( "primaryGroupID" ) );