summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2003-09-20 15:29:27 +0000
committerGerald Carter <jerry@samba.org>2003-09-20 15:29:27 +0000
commitdb0d8f76ba9fbd090b62cb1233b566040e36f552 (patch)
treec196c073b28f72c073068064b1a3cb4df000d874 /examples
parentec65dabe9ddd116da41beae0b1a573724c991df6 (diff)
downloadsamba-db0d8f76ba9fbd090b62cb1233b566040e36f552.tar.gz
samba-db0d8f76ba9fbd090b62cb1233b566040e36f552.tar.xz
samba-db0d8f76ba9fbd090b62cb1233b566040e36f552.zip
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" ) );