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 commit is contained in:
parent
bd9b90a391
commit
5c45b799d1
@ -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" ) );
|
||||
|
Loading…
Reference in New Issue
Block a user