diff -r 40c3719c87d4 -r 3e5572aeee55 shelldap --- a/shelldap Tue Sep 06 16:05:31 2011 -0700 +++ b/shelldap Tue Sep 06 16:05:34 2011 -0700 @@ -1513,7 +1513,8 @@ # if this entry is a container for other entries, append a # trailing slash. - $dn .= '/' if ($e->get_value('hasSubordinates') eq 'TRUE'); + $dn .= '/' if $e->get_value('hasSubordinates') && + $e->get_value('hasSubordinates') eq 'TRUE'; # additional arguments/attributes were given; show their values #