diff options
author | Gerald Carter <jerry@samba.org> | 2003-09-20 15:29:27 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2003-09-20 15:29:27 +0000 |
commit | ccb7f73f2370eaa4b9ba3d23e928a39cd4aa011e (patch) | |
tree | 8e5e13abc3d7b793cb75c88b4add513943b299fd /examples | |
parent | da3345757545bdc3b3ec965db15a34008e383099 (diff) | |
download | samba-ccb7f73f2370eaa4b9ba3d23e928a39cd4aa011e.tar.gz samba-ccb7f73f2370eaa4b9ba3d23e928a39cd4aa011e.tar.bz2 samba-ccb7f73f2370eaa4b9ba3d23e928a39cd4aa011e.zip |
fix from Brad Langhorst to correctly check if the primaryGroupID has been set
(This used to be commit db0d8f76ba9fbd090b62cb1233b566040e36f552)
Diffstat (limited to 'examples')
-rwxr-xr-x | examples/LDAP/convertSambaAccount | 2 |
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" ) ); |