1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

fix from Brad Langhorst to correctly check if the primaryGroupID has been set

(This used to be commit db0d8f76ba)
This commit is contained in:
Gerald Carter 2003-09-20 15:29:27 +00:00
parent da33457575
commit ccb7f73f23

View File

@ -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" ) );