" method="post">
LDAP connection tests
\n"; #TLS? if ($LDAP['starttls'] && $ENCRYPTED == TRUE) { print "$li_good Encrypted connection to ${LDAP['uri']} via STARTTLS\n"; } else { print "$li_warn Unable to connect to ${LDAP['uri']} via STARTTLS. "; print "
What's this?
\n"; } ?>
LDAP OU checks
${LDAP['group_dn']}) doesn't exist. "; print "
What's this?
"; print "
Create?
"; 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 "
Create?
"; 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 "
Create?
"; 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 "
Create?
"; print "\n"; $show_finish_button = FALSE; } else { print "$li_good The
lastUID
entry is present."; } $defgroup_filter = "(&(objectclass=posixGroup)(cn=${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 "
Create?
"; print "\n"; $show_finish_button = FALSE; } else { print "$li_good The default user group (
$DEFAULT_USER_GROUP
) is present."; } $adminsgroup_filter = "(&(objectclass=posixGroup)(cn=${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 "
Create?
"; 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; } } ?>