Fixed some short tags
[moodle.git] / auth / ldap / config.html
CommitLineData
50c4bd41 1<?PHP
2 if (!isset($config->ldap_host_url)) {
3 $config->ldap_host_url = "";
4 }
5 if (!isset($config->ldap_contexts)) {
6 $config->ldap_contexts = "";
7 }
8 if (!isset($config->ldap_user_attribute)) {
9 $config->ldap_user_attribute = "";
10 }
11 if (!isset($config->ldap_search_sub)) {
12 $config->ldap_search_sub = "";
13 }
14 if (!isset($config->ldap_bind_dn)) {
15 $config->ldap_bind_dn = "";
16 }
17 if (!isset($config->ldap_bind_pw)) {
18 $config->ldap_bind_pw = "";
19 }
20?>
16b8fe5b 21<tr valign="top" BGCOLOR="<?php echo $THEME->cellheading2 ?>">
35a48c9a 22 <TD ALIGN=RIGHT><P>ldap_host_url:</TD>
23 <TD>
16b8fe5b 24 <INPUT name=ldap_host_url TYPE=text SIZE=30 VALUE="<?php echo $config->ldap_host_url?>">
25 <?php if (isset($err["ldap_host_url"])) formerr($err["ldap_host_url"]); ?>
35a48c9a 26 </TD>
27 <TD>
16b8fe5b 28 <?php print_string("auth_ldap_host_url","auth") ?>
35a48c9a 29 </TD>
30</TR>
31
16b8fe5b 32<TR VALIGN=TOP BGCOLOR="<?php echo $THEME->cellheading2 ?>">
50c4bd41 33 <TD ALIGN=RIGHT><P>ldap_contexts:</TD>
35a48c9a 34 <TD>
16b8fe5b 35 <INPUT name=ldap_contexts TYPE=text SIZE=30 VALUE="<?php echo $config->ldap_contexts?>">
36 <?php if (isset($err["ldap_contexts"])) formerr($err["ldap_contexts"]); ?>
35a48c9a 37 </TD>
38 <TD>
16b8fe5b 39 <?php print_string("auth_ldap_contexts","auth") ?>
35a48c9a 40 </TD>
41</TR>
42
16b8fe5b 43<TR VALIGN=TOP BGCOLOR="<?php echo $THEME->cellheading2 ?>">
7c58aee6 44 <TD ALIGN=RIGHT><P>ldap_user_attribute:</TD>
35a48c9a 45 <TD>
16b8fe5b 46 <INPUT name=ldap_user_attribute TYPE=text SIZE=30 VALUE="<?php echo $config->ldap_user_attribute?>">
47 <?php if (isset($err["ldap_user_attribute"])) formerr($err["ldap_user_attribute"]); ?>
35a48c9a 48 </TD>
49 <TD>
16b8fe5b 50 <?php print_string("auth_ldap_user_attribute","auth") ?>
35a48c9a 51 </TD>
52</TR>
53
16b8fe5b 54<TR VALIGN=TOP BGCOLOR="<?php echo $THEME->cellheading2 ?>">
35a48c9a 55 <TD ALIGN=RIGHT><P>ldap_search_sub:</TD>
56 <TD>
16b8fe5b 57 <INPUT name=ldap_search_sub TYPE=text SIZE=1 VALUE="<?php echo $config->ldap_search_sub?>">
58 <?php if (isset($err["ldap_search_sub"])) formerr($err["ldap_search_sub"]); ?>
35a48c9a 59 </TD>
60 <TD>
16b8fe5b 61 <?php print_string("auth_ldap_search_sub","auth") ?>
35a48c9a 62 </TD>
63</TR>
64
16b8fe5b 65<TR VALIGN=TOP BGCOLOR="<?php echo $THEME->cellheading2 ?>">
35a48c9a 66 <TD ALIGN=RIGHT><P>ldap_bind_dn:</TD>
67 <TD>
16b8fe5b 68 <INPUT name=ldap_bind_dn TYPE=text SIZE=30 VALUE="<?php echo $config->ldap_bind_dn?>">
69 <?php if (isset($err["ldap_bind_dn"])) formerr($err["ldap_bind_dn"]); ?>
35a48c9a 70 </TD><TD>
16b8fe5b 71 <?php print_string("auth_ldap_bind_dn","auth") ?>
35a48c9a 72 </TD>
73</TR>
74
16b8fe5b 75<TR VALIGN=TOP BGCOLOR="<?php echo $THEME->cellheading2 ?>">
50c4bd41 76 <TD ALIGN=RIGHT><P>ldap_bind_pw:</TD>
35a48c9a 77 <TD>
16b8fe5b 78 <INPUT name=ldap_bind_pw TYPE=text SIZE=30 VALUE="<?php echo $config->ldap_bind_pw?>">
79 <?php if (isset($err["ldap_bind_pw"])) formerr($err["ldap_bind_pw"]); ?>
35a48c9a 80 </TD><TD>
16b8fe5b 81 <?php print_string("auth_ldap_bind_pw","auth") ?>
35a48c9a 82 </TD>
83</TR>
84
16b8fe5b 85<TR VALIGN=TOP BGCOLOR="<?php echo $THEME->cellheading2 ?>">
1924074c 86 <TD ALIGN=RIGHT><P>ldap_memberattribute:</TD>
87 <TD>
16b8fe5b 88 <INPUT name=ldap_memberattribute TYPE=text SIZE=30 VALUE="<?php echo $config->ldap_memberattribute?>">
89 <?php if (isset($err["ldap_memberattribute"])) formerr($err["ldap_memberattribute"]); ?>
1924074c 90 </TD><TD>
16b8fe5b 91 <?php print_string("auth_ldap_memberattribute","auth") ?>
1924074c 92 </TD>
93</TR>
94
16b8fe5b 95<TR VALIGN=TOP BGCOLOR="<?php echo $THEME->cellheading2 ?>">
1924074c 96 <TD ALIGN=RIGHT><P>ldap_creators:</TD>
97 <TD>
16b8fe5b 98 <INPUT name=ldap_creators TYPE=text SIZE=30 VALUE="<?php echo $config->ldap_creators?>">
99 <?php if (isset($err["ldap_creators"])) formerr($err["ldap_creators"]); ?>
1924074c 100 </TD><TD>
16b8fe5b 101 <?php print_string("auth_ldap_creators","auth") ?>
1924074c 102 </TD>
103</TR>
104
16b8fe5b 105<TR VALIGN=TOP BGCOLOR="<?php echo $THEME->cellheading2 ?>">
5f2c35db 106 <TD ALIGN=RIGHT><P>ldap_create_context:</TD>
107 <TD>
16b8fe5b 108 <INPUT name=ldap_create_context TYPE=text SIZE=30 VALUE="<?php echo $config->ldap_create_context?>">
109 <?php if (isset($err["ldap_create_context"])) formerr($err["ldap_create_context"]); ?>
5f2c35db 110 </TD><TD>
16b8fe5b 111 <?php print_string("auth_ldap_create_context","auth") ?>
5f2c35db 112 </TD>
113</TR>
7c58aee6 114
115<TR>
16b8fe5b 116 <TD ALIGN=RIGHT><P><?php print_string("firstname") ?>:</TD>
7c58aee6 117 <TD>
16b8fe5b 118 <INPUT name="auth_user_firstname" TYPE="text" SIZE="30" VALUE="<?php echo $config->auth_user_firstname?>">
7c58aee6 119 </TD>
120 <TD rowspan=12 VALIGN=CENTER>
16b8fe5b 121 <?php print_string("auth_ldapextrafields","auth") ?>
7c58aee6 122 </TD>
123</TR>
124
125<TR VALIGN=TOP>
16b8fe5b 126 <TD ALIGN=RIGHT><P><?php print_string("lastname") ?>:</TD>
7c58aee6 127 <TD>
16b8fe5b 128 <INPUT name="auth_user_lastname" TYPE="text" SIZE="30" VALUE="<?php echo $config->auth_user_lastname?>">
7c58aee6 129 </TD>
130</TR>
131
132<TR VALIGN=TOP>
16b8fe5b 133 <TD ALIGN=RIGHT><P><?php print_string("email") ?>:</TD>
7c58aee6 134 <TD>
16b8fe5b 135 <INPUT name="auth_user_email" TYPE="text" SIZE="30" VALUE="<?php echo $config->auth_user_email?>">
7c58aee6 136 </TD>
137</TR>
138
139<TR VALIGN=TOP>
16b8fe5b 140 <TD ALIGN=RIGHT><P><?php print_string("phone") ?> 1:</TD>
7c58aee6 141 <TD>
16b8fe5b 142 <INPUT name="auth_user_phone1" TYPE="text" SIZE="30" VALUE="<?php echo $config->auth_user_phone1?>">
7c58aee6 143 </TD>
144</TR>
145
146<TR VALIGN=TOP>
16b8fe5b 147 <TD ALIGN=RIGHT><P><?php print_string("phone") ?> 2:</TD>
7c58aee6 148 <TD>
16b8fe5b 149 <INPUT name="auth_user_phone2" TYPE="text" SIZE="30" VALUE="<?php echo $config->auth_user_phone2?>">
7c58aee6 150 </TD>
151</TR>
152
153<TR VALIGN=TOP>
16b8fe5b 154 <TD ALIGN=RIGHT><P><?php print_string("department") ?>:</TD>
7c58aee6 155 <TD>
16b8fe5b 156 <INPUT name="auth_user_department" TYPE="text" SIZE="30" VALUE="<?php echo $config->auth_user_department?>">
7c58aee6 157 </TD>
158</TR>
159
160<TR VALIGN=TOP>
16b8fe5b 161 <TD ALIGN=RIGHT><P><?php print_string("address") ?>:</TD>
7c58aee6 162 <TD>
16b8fe5b 163 <INPUT name="auth_user_address" TYPE="text" SIZE="30" VALUE="<?php echo $config->auth_user_address?>">
7c58aee6 164 </TD>
165</TR>
166
167<TR VALIGN=TOP>
16b8fe5b 168 <TD ALIGN=RIGHT><P><?php print_string("city") ?>:</TD>
7c58aee6 169 <TD>
16b8fe5b 170 <INPUT name="auth_user_city" TYPE="text" SIZE="30" VALUE="<?php echo $config->auth_user_city?>">
7c58aee6 171 </TD>
172</TR>
173
174<TR VALIGN=TOP>
16b8fe5b 175 <TD ALIGN=RIGHT><P><?php print_string("country") ?>:</TD>
7c58aee6 176 <TD>
16b8fe5b 177 <INPUT name="auth_user_country" TYPE="text" SIZE="30" VALUE="<?php echo $config->auth_user_country?>">
7c58aee6 178 </TD>
179</TR>
180
181<TR VALIGN=TOP>
16b8fe5b 182 <TD ALIGN=RIGHT><P><?php print_string("description") ?>:</TD>
7c58aee6 183 <TD>
16b8fe5b 184 <INPUT name="auth_user_description" TYPE="text" SIZE="30" VALUE="<?php echo $config->auth_user_description?>">
7c58aee6 185 </TD>
186</TR>
187
188<TR VALIGN=TOP>
16b8fe5b 189 <TD ALIGN=RIGHT><P><?php print_string("idnumber") ?>:</TD>
7c58aee6 190 <TD>
16b8fe5b 191 <INPUT name="auth_user_idnumber" TYPE="text" SIZE="30" VALUE="<?php echo $config->auth_user_idnumber?>">
7c58aee6 192 </TD>
193</TR>
194
195<TR VALIGN=TOP>
16b8fe5b 196 <TD ALIGN=RIGHT><P><?php print_string("language") ?>:</TD>
7c58aee6 197 <TD>
16b8fe5b 198 <INPUT name="auth_user_lang" TYPE="text" SIZE="30" VALUE="<?php echo $config->auth_user_lang?>">
7c58aee6 199 </TD>
200</TR>
201
202
35a48c9a 203<TR VALIGN=TOP>
16b8fe5b 204 <TD ALIGN=RIGHT><P><?php print_string("instructions", "auth") ?>:</TD>
35a48c9a 205 <TD>
16b8fe5b 206 <TEXTAREA NAME=auth_instructions COLS=30 ROWS=10 WRAP=virtual><?php p($config->auth_instructions) ?></TEXTAREA>
35a48c9a 207 </TD>
208 <TD>
16b8fe5b 209 <?php print_string("authinstructions","auth") ?>
210 <?php helpbutton("text", get_string("helptext")) ?>
35a48c9a 211 </TD>
212</TR>
7c58aee6 213
214
215
216