2 if (!isset($config->ldap_host_url)) {
3 $config->ldap_host_url = "";
5 if (!isset($config->ldap_contexts)) {
6 $config->ldap_contexts = "";
8 if (!isset($config->ldap_user_attribute)) {
9 $config->ldap_user_attribute = "";
11 if (!isset($config->ldap_search_sub)) {
12 $config->ldap_search_sub = "";
14 if (!isset($config->ldap_bind_dn)) {
15 $config->ldap_bind_dn = "";
17 if (!isset($config->ldap_bind_pw)) {
18 $config->ldap_bind_pw = "";
21 <tr valign="top" BGCOLOR="<?=$THEME->cellheading2 ?>">
22 <TD ALIGN=RIGHT><P>ldap_host_url:</TD>
24 <INPUT name=ldap_host_url TYPE=text SIZE=30 VALUE="<?=$config->ldap_host_url?>">
25 <? if (isset($err["ldap_host_url"])) formerr($err["ldap_host_url"]); ?>
28 <? print_string("auth_ldap_host_url","auth") ?>
32 <TR VALIGN=TOP BGCOLOR="<?=$THEME->cellheading2 ?>">
33 <TD ALIGN=RIGHT><P>ldap_contexts:</TD>
35 <INPUT name=ldap_contexts TYPE=text SIZE=30 VALUE="<?=$config->ldap_contexts?>">
36 <? if (isset($err["ldap_contexts"])) formerr($err["ldap_contexts"]); ?>
39 <? print_string("auth_ldap_contexts","auth") ?>
43 <TR VALIGN=TOP BGCOLOR="<?=$THEME->cellheading2 ?>">
44 <TD ALIGN=RIGHT><P>ldap_user_attribute:</TD>
46 <INPUT name=ldap_user_attribute TYPE=text SIZE=30 VALUE="<?=$config->ldap_user_attribute?>">
47 <? if (isset($err["ldap_user_attribute"])) formerr($err["ldap_user_attribute"]); ?>
50 <? print_string("auth_ldap_user_attribute","auth") ?>
54 <TR VALIGN=TOP BGCOLOR="<?=$THEME->cellheading2 ?>">
55 <TD ALIGN=RIGHT><P>ldap_search_sub:</TD>
57 <INPUT name=ldap_search_sub TYPE=text SIZE=1 VALUE="<?=$config->ldap_search_sub?>">
58 <? if (isset($err["ldap_search_sub"])) formerr($err["ldap_search_sub"]); ?>
61 <? print_string("auth_ldap_search_sub","auth") ?>
65 <TR VALIGN=TOP BGCOLOR="<?=$THEME->cellheading2 ?>">
66 <TD ALIGN=RIGHT><P>ldap_bind_dn:</TD>
68 <INPUT name=ldap_bind_dn TYPE=text SIZE=30 VALUE="<?=$config->ldap_bind_dn?>">
69 <? if (isset($err["ldap_bind_dn"])) formerr($err["ldap_bind_dn"]); ?>
71 <? print_string("auth_ldap_bind_dn","auth") ?>
75 <TR VALIGN=TOP BGCOLOR="<?=$THEME->cellheading2 ?>">
76 <TD ALIGN=RIGHT><P>ldap_bind_pw:</TD>
78 <INPUT name=ldap_bind_pw TYPE=text SIZE=30 VALUE="<?=$config->ldap_bind_pw?>">
79 <? if (isset($err["ldap_bind_pw"])) formerr($err["ldap_bind_pw"]); ?>
81 <? print_string("auth_ldap_bind_pw","auth") ?>
88 <TD ALIGN=RIGHT><P><? print_string("firstname") ?>:</TD>
90 <INPUT name="auth_user_firstname" TYPE="text" SIZE="30" VALUE="<?=$config->auth_user_firstname?>">
92 <TD rowspan=12 VALIGN=CENTER>
93 <? print_string("auth_ldapextrafields","auth") ?>
98 <TD ALIGN=RIGHT><P><? print_string("lastname") ?>:</TD>
100 <INPUT name="auth_user_lastname" TYPE="text" SIZE="30" VALUE="<?=$config->auth_user_lastname?>">
105 <TD ALIGN=RIGHT><P><? print_string("email") ?>:</TD>
107 <INPUT name="auth_user_email" TYPE="text" SIZE="30" VALUE="<?=$config->auth_user_email?>">
112 <TD ALIGN=RIGHT><P><? print_string("phone") ?> 1:</TD>
114 <INPUT name="auth_user_phone1" TYPE="text" SIZE="30" VALUE="<?=$config->auth_user_phone1?>">
119 <TD ALIGN=RIGHT><P><? print_string("phone") ?> 2:</TD>
121 <INPUT name="auth_user_phone2" TYPE="text" SIZE="30" VALUE="<?=$config->auth_user_phone2?>">
126 <TD ALIGN=RIGHT><P><? print_string("department") ?>:</TD>
128 <INPUT name="auth_user_department" TYPE="text" SIZE="30" VALUE="<?=$config->auth_user_department?>">
133 <TD ALIGN=RIGHT><P><? print_string("address") ?>:</TD>
135 <INPUT name="auth_user_address" TYPE="text" SIZE="30" VALUE="<?=$config->auth_user_address?>">
140 <TD ALIGN=RIGHT><P><? print_string("city") ?>:</TD>
142 <INPUT name="auth_user_city" TYPE="text" SIZE="30" VALUE="<?=$config->auth_user_city?>">
147 <TD ALIGN=RIGHT><P><? print_string("country") ?>:</TD>
149 <INPUT name="auth_user_country" TYPE="text" SIZE="30" VALUE="<?=$config->auth_user_country?>">
154 <TD ALIGN=RIGHT><P><? print_string("description") ?>:</TD>
156 <INPUT name="auth_user_description" TYPE="text" SIZE="30" VALUE="<?=$config->auth_user_description?>">
161 <TD ALIGN=RIGHT><P><? print_string("idnumber") ?>:</TD>
163 <INPUT name="auth_user_idnumber" TYPE="text" SIZE="30" VALUE="<?=$config->auth_user_idnumber?>">
168 <TD ALIGN=RIGHT><P><? print_string("language") ?>:</TD>
170 <INPUT name="auth_user_lang" TYPE="text" SIZE="30" VALUE="<?=$config->auth_user_lang?>">
176 <TD ALIGN=RIGHT><P><? print_string("instructions", "auth") ?>:</TD>
178 <TEXTAREA NAME=auth_instructions COLS=30 ROWS=10 WRAP=virtual><? p($config->auth_instructions) ?></TEXTAREA>
181 <? print_string("authinstructions","auth") ?>
182 <? helpbutton("text", get_string("helptext")) ?>