LDAP connection tests
    \n"; #TLS? if ($LDAP['connection_type'] != "plain") { print "$li_good Encrypted connection to {$LDAP['uri']} via {$LDAP['connection_type']}\n"; } else { print "$li_warn Unable to connect to {$LDAP['uri']} via StartTLS. "; print "What's this?\n"; } ?>
LDAP RFC2307BIS schema check
    What's this?"; print "\n"; } else { print "$li_warn The RFC2307BIS schema doesn't appear to be available.
    \nIf this is incorrect, set FORCE_RFC2307BIS to TRUE, restart the user manager and run the setup again. "; print "What's this?"; print "\n"; } ?>
LDAP OU checks
    {$LDAP['group_dn']}) doesn't exist. "; print "What's this?"; print ""; print "\n"; $show_finish_button = FALSE; } else { print "$li_good The group OU ({$LDAP['group_dn']}) is present."; } $user_filter = "(&(objectclass=organizationalUnit)(ou={$LDAP['user_ou']}))"; $ldap_user_search = ldap_search($ldap_connection, "{$LDAP['base_dn']}", $user_filter); $user_result = ldap_get_entries($ldap_connection, $ldap_user_search); if ($user_result['count'] != 1) { print "$li_fail The user OU ({$LDAP['user_dn']}) doesn't exist. "; print "What's this?"; print ""; print "\n"; $show_finish_button = FALSE; } else { print "$li_good The user OU ({$LDAP['user_dn']}) is present."; } ?>
LDAP group and settings
    lastGID entry doesn't exist. "; print "What's this?"; print ""; print "\n"; $show_finish_button = FALSE; } else { print "$li_good The lastGID entry is present."; } $uid_filter = "(&(objectclass=device)(cn=lastUID))"; $ldap_uid_search = ldap_search($ldap_connection, "{$LDAP['base_dn']}", $uid_filter); $uid_result = ldap_get_entries($ldap_connection, $ldap_uid_search); if ($uid_result['count'] != 1) { print "$li_warn The lastUID entry doesn't exist. "; print "What's this?"; print ""; print "\n"; $show_finish_button = FALSE; } else { print "$li_good The lastUID entry is present."; } $defgroup_filter = "(&(objectclass=posixGroup)({$LDAP['group_attribute']}={$DEFAULT_USER_GROUP}))"; $ldap_defgroup_search = ldap_search($ldap_connection, "{$LDAP['base_dn']}", $defgroup_filter); $defgroup_result = ldap_get_entries($ldap_connection, $ldap_defgroup_search); if ($defgroup_result['count'] != 1) { print "$li_warn The default group ($DEFAULT_USER_GROUP) doesn't exist. "; print "What's this?"; print ""; print "\n"; $show_finish_button = FALSE; } else { print "$li_good The default user group ($DEFAULT_USER_GROUP) is present."; } $adminsgroup_filter = "(&(objectclass=posixGroup)({$LDAP['group_attribute']}={$LDAP['admins_group']}))"; $ldap_adminsgroup_search = ldap_search($ldap_connection, "{$LDAP['base_dn']}", $adminsgroup_filter); $adminsgroup_result = ldap_get_entries($ldap_connection, $ldap_adminsgroup_search); if ($adminsgroup_result['count'] != 1) { print "$li_fail The group defining LDAP account administrators ({$LDAP['admins_group']}) doesn't exist. "; print "What's this?"; print ""; print "\n"; $show_finish_button = FALSE; } else { print "$li_good The LDAP account administrators group ({$LDAP['admins_group']}) is present."; $admins = ldap_get_group_members($ldap_connection,$LDAP['admins_group']); if (count($admins) < 1) { print "$li_fail The LDAP administration group is empty. You can add an admin account in the next section."; $show_finish_button = FALSE; } } ?>
">