summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2003-09-20 15:28:24 +0000
committerGerald Carter <jerry@samba.org>2003-09-20 15:28:24 +0000
commitaf7ed6225c3b890b5e7bac6b9bd9029e35c37b4a (patch)
tree562bf4fcaa6a2a016756fa349dbb6e516ec6ef96
parentd1b4886688d0323ee070e87c80bcd540f15e7ceb (diff)
downloadsamba-af7ed6225c3b890b5e7bac6b9bd9029e35c37b4a.tar.gz
samba-af7ed6225c3b890b5e7bac6b9bd9029e35c37b4a.tar.bz2
samba-af7ed6225c3b890b5e7bac6b9bd9029e35c37b4a.zip
fix from Brad Langhorst to correctly check if the primaryGroupID has been set
(This used to be commit 5c45b799d1b87fed8afa4665e075f2c8ccb6da84)
-rwxr-xr-xexamples/LDAP/convertSambaAccount2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/LDAP/convertSambaAccount b/examples/LDAP/convertSambaAccount
index d2770c75a6..e00d0a2326 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" ) );