Fixed some short tags
[moodle.git] / auth / ldap / config.html
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 ?>
21 <tr valign="top" BGCOLOR="<?php echo $THEME->cellheading2 ?>">
22         <TD ALIGN=RIGHT><P>ldap_host_url:</TD>
23         <TD>
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"]); ?>
26         </TD>
27     <TD>
28     <?php  print_string("auth_ldap_host_url","auth") ?>
29     </TD>
30 </TR>
32 <TR VALIGN=TOP BGCOLOR="<?php echo $THEME->cellheading2 ?>">
33         <TD ALIGN=RIGHT><P>ldap_contexts:</TD>
34         <TD>
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"]); ?>
37     </TD>
38     <TD>
39     <?php  print_string("auth_ldap_contexts","auth") ?>
40     </TD>
41 </TR>
43 <TR VALIGN=TOP BGCOLOR="<?php echo $THEME->cellheading2 ?>">
44         <TD ALIGN=RIGHT><P>ldap_user_attribute:</TD>
45         <TD>
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"]); ?>
48     </TD>
49     <TD>
50     <?php  print_string("auth_ldap_user_attribute","auth") ?>
51     </TD>
52 </TR>
54 <TR VALIGN=TOP BGCOLOR="<?php echo $THEME->cellheading2 ?>">
55         <TD ALIGN=RIGHT><P>ldap_search_sub:</TD>
56         <TD>
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"]); ?>
59     </TD>
60     <TD>
61     <?php  print_string("auth_ldap_search_sub","auth") ?>
62     </TD>
63 </TR>
65 <TR VALIGN=TOP BGCOLOR="<?php echo $THEME->cellheading2 ?>">
66         <TD ALIGN=RIGHT><P>ldap_bind_dn:</TD>
67         <TD>
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"]); ?>
70     </TD><TD>
71     <?php  print_string("auth_ldap_bind_dn","auth") ?>
72     </TD>
73 </TR>
75 <TR VALIGN=TOP BGCOLOR="<?php echo $THEME->cellheading2 ?>">
76         <TD ALIGN=RIGHT><P>ldap_bind_pw:</TD>
77         <TD>
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"]); ?>
80     </TD><TD>
81     <?php  print_string("auth_ldap_bind_pw","auth") ?>
82     </TD>
83 </TR>
85 <TR VALIGN=TOP BGCOLOR="<?php echo $THEME->cellheading2 ?>">
86         <TD ALIGN=RIGHT><P>ldap_memberattribute:</TD>
87         <TD>
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"]); ?>
90     </TD><TD>
91     <?php  print_string("auth_ldap_memberattribute","auth") ?>
92     </TD>
93 </TR>
95 <TR VALIGN=TOP BGCOLOR="<?php echo $THEME->cellheading2 ?>">
96         <TD ALIGN=RIGHT><P>ldap_creators:</TD>
97         <TD>
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"]); ?>
100     </TD><TD>
101     <?php  print_string("auth_ldap_creators","auth") ?>
102     </TD>
103 </TR>
105 <TR VALIGN=TOP BGCOLOR="<?php echo $THEME->cellheading2 ?>">
106         <TD ALIGN=RIGHT><P>ldap_create_context:</TD>
107         <TD>
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"]); ?>
110     </TD><TD>
111     <?php  print_string("auth_ldap_create_context","auth") ?>
112     </TD>
113 </TR>
115 <TR>
116         <TD ALIGN=RIGHT><P><?php  print_string("firstname") ?>:</TD>
117         <TD>
118     <INPUT name="auth_user_firstname" TYPE="text" SIZE="30" VALUE="<?php echo $config->auth_user_firstname?>">
119     </TD>
120     <TD rowspan=12 VALIGN=CENTER>
121     <?php  print_string("auth_ldapextrafields","auth") ?>
122     </TD>
123 </TR>
125 <TR VALIGN=TOP>
126         <TD ALIGN=RIGHT><P><?php  print_string("lastname") ?>:</TD>
127         <TD>
128     <INPUT name="auth_user_lastname" TYPE="text" SIZE="30" VALUE="<?php echo $config->auth_user_lastname?>">
129     </TD>
130 </TR>
132 <TR VALIGN=TOP>
133         <TD ALIGN=RIGHT><P><?php  print_string("email") ?>:</TD>
134         <TD>
135     <INPUT name="auth_user_email" TYPE="text" SIZE="30" VALUE="<?php echo $config->auth_user_email?>">
136     </TD>
137 </TR>
139 <TR VALIGN=TOP>
140         <TD ALIGN=RIGHT><P><?php  print_string("phone") ?> 1:</TD>
141         <TD>
142     <INPUT name="auth_user_phone1" TYPE="text" SIZE="30" VALUE="<?php echo $config->auth_user_phone1?>">
143     </TD>
144 </TR>
146 <TR VALIGN=TOP>
147         <TD ALIGN=RIGHT><P><?php  print_string("phone") ?> 2:</TD>
148         <TD>
149     <INPUT name="auth_user_phone2" TYPE="text" SIZE="30" VALUE="<?php echo $config->auth_user_phone2?>">
150     </TD>
151 </TR>
153 <TR VALIGN=TOP>
154         <TD ALIGN=RIGHT><P><?php  print_string("department") ?>:</TD>
155         <TD>
156     <INPUT name="auth_user_department" TYPE="text" SIZE="30" VALUE="<?php echo $config->auth_user_department?>">
157     </TD>
158 </TR>
160 <TR VALIGN=TOP>
161         <TD ALIGN=RIGHT><P><?php  print_string("address") ?>:</TD>
162         <TD>
163     <INPUT name="auth_user_address" TYPE="text" SIZE="30" VALUE="<?php echo $config->auth_user_address?>">
164     </TD>
165 </TR>
167 <TR VALIGN=TOP>
168         <TD ALIGN=RIGHT><P><?php  print_string("city") ?>:</TD>
169         <TD>
170     <INPUT name="auth_user_city" TYPE="text" SIZE="30" VALUE="<?php echo $config->auth_user_city?>">
171     </TD>
172 </TR>
174 <TR VALIGN=TOP>
175         <TD ALIGN=RIGHT><P><?php  print_string("country") ?>:</TD>
176         <TD>
177     <INPUT name="auth_user_country" TYPE="text" SIZE="30" VALUE="<?php echo $config->auth_user_country?>">
178     </TD>
179 </TR>
181 <TR VALIGN=TOP>
182         <TD ALIGN=RIGHT><P><?php  print_string("description") ?>:</TD>
183         <TD>
184     <INPUT name="auth_user_description" TYPE="text" SIZE="30" VALUE="<?php echo $config->auth_user_description?>">
185     </TD>
186 </TR>
188 <TR VALIGN=TOP>
189         <TD ALIGN=RIGHT><P><?php  print_string("idnumber") ?>:</TD>
190         <TD>
191     <INPUT name="auth_user_idnumber" TYPE="text" SIZE="30" VALUE="<?php echo $config->auth_user_idnumber?>">
192     </TD>
193 </TR>
195 <TR VALIGN=TOP>
196         <TD ALIGN=RIGHT><P><?php  print_string("language") ?>:</TD>
197         <TD>
198     <INPUT name="auth_user_lang" TYPE="text" SIZE="30" VALUE="<?php echo $config->auth_user_lang?>">
199     </TD>
200 </TR>
203 <TR VALIGN=TOP>
204         <TD ALIGN=RIGHT><P><?php  print_string("instructions", "auth") ?>:</TD>
205         <TD>
206     <TEXTAREA NAME=auth_instructions COLS=30 ROWS=10 WRAP=virtual><?php  p($config->auth_instructions) ?></TEXTAREA> 
207     </TD>
208     <TD>
209     <?php  print_string("authinstructions","auth") ?>
210     <?php  helpbutton("text", get_string("helptext")) ?>
211     </TD>
212 </TR>