summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2003-09-20 15:29:15 +0000
committerGerald Carter <jerry@samba.org>2003-09-20 15:29:15 +0000
commit87ddd11f0032792b543896f99422c7edeb4feab0 (patch)
treeaa3e24945f7513fb8f159f20fb67c6d07851044c /examples
parent5430a76a9b9b817f88810b15a1bcecf5364e0170 (diff)
downloadsamba-87ddd11f0032792b543896f99422c7edeb4feab0.tar.gz
fix from Brad Langhorst to correctly check if the primaryGroupID has been set
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/LDAP/convertSambaAccount2
1 files changed, 1 insertions, 1 deletions
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" ) );