summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2003-06-12 13:41:13 +0000
committerGerald Carter <jerry@samba.org>2003-06-12 13:41:13 +0000
commitb93851af1368a3d718e29e6337a53b263e31f855 (patch)
tree1a293b84a1dc22d01cd746fd71c00e3bdee96b03
parent098fea0fa85d41576121a25e8664cdf23135b067 (diff)
downloadsamba-b93851af1368a3d718e29e6337a53b263e31f855.tar.gz
samba-b93851af1368a3d718e29e6337a53b263e31f855.tar.bz2
samba-b93851af1368a3d718e29e6337a53b263e31f855.zip
check that an attribute is defined and not just non-zero
(This used to be commit 8c18174a899e9578e0e82d17c7602e84b342644c)
-rwxr-xr-xexamples/LDAP/convertSambaAccount2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/LDAP/convertSambaAccount b/examples/LDAP/convertSambaAccount
index f5b49ff095..1cfb3ee2a4 100755
--- a/examples/LDAP/convertSambaAccount
+++ b/examples/LDAP/convertSambaAccount
@@ -93,7 +93,7 @@ while ( !$ldif->eof ) {
foreach $key ( keys %attr_map ) {
- if ( $entry->get_value($key) ) {
+ if ( defined($entry->get_value($key)) ) {
$entry->add( $attr_map{$key} => $entry->get_value($key) );
$entry->delete( $key );
}