mirror of
https://github.com/samba-team/samba.git
synced 2025-09-10 05:44:20 +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:
@@ -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" ) );
|
||||
|
Reference in New Issue
Block a user