Project

General

Profile

« Previous | Next » 

Revision cc8b82d9

Added by Scott Ullrich over 17 years ago

Add Users containers setting where a ; seperated list of LDAP containers
can be specified to authenticate against. Final item will be a graphical
browser that can help the operator populate this box if they are feeling
lazy or do not understand LDAP completely.

Work sponsored-by: Centipede Networks <http://centipedenetworks.com/>

View differences:

usr/local/www/system_usermanager_settings.php
43 43
$pconfig['ldapbindpw'] = &$config['system']['webgui']['ldapbindpw'];
44 44
$pconfig['ldapfilter'] = &$config['system']['webgui']['ldapfilter'];
45 45
$pconfig['ldapsearchbase'] = &$config['system']['webgui']['ldapsearchbase'];
46
$pconfig['ldapauthcontainers'] = &$config['system']['webgui']['ldapauthcontainers'];
46 47

  
47 48
// Page title for main admin
48 49
$pgtitle = array("System","User manager settings");
......
104 105
		else
105 106
			unset($pconfig['ldapsearchbase']);
106 107

  
108
		if($_POST['ldapauthcontainers'])
109
			$pconfig['ldapauthcontainers'] = $_POST['ldapauthcontainers'];
110
		else
111
			unset($pconfig['ldapauthcontainers']);
112

  
107 113
		write_config();
108 114

  
109 115
		$retval = system_password_configure();
......
203 209
							<br/>Example: DC=pfsense,DC=com
204 210
						</td>
205 211
					</tr>
212
					<tr>
213
                        <td width="22%" valign="top" class="vncell">LDAP Authentication containers</td>
214
                        <td width="78%" class="vtable">
215
							<input name="ldapauthcontainers" size="65" value="<?=htmlspecialchars($pconfig['ldapauthcontainers']);?>">
216
							<br/>NOTE: Comma separated.
217
							<br/>EXAMPLE: CN=Users,DC=pfsense,DC=com;CN=OtherUsers,DC=pfsense,DC=com
218
						</td>
219
					</tr>					
206 220
                	<tr>
207 221
                  		<td width="22%" valign="top">&nbsp;</td>
208 222
                  		<td width="78%"> 

Also available in: Unified diff