mirror of
				https://github.com/Icinga/icingaweb2.git
				synced 2025-10-30 10:54:02 +01:00 
			
		
		
		
	Setup: Provide a default user filter for ActiveDirectory backends
fixes #8703
This commit is contained in:
		
							parent
							
								
									86bdf81396
								
							
						
					
					
						commit
						d95874b84c
					
				| @ -92,7 +92,9 @@ class LdapBackendForm extends Form | |||||||
|             'text', |             'text', | ||||||
|             'filter', |             'filter', | ||||||
|             array( |             array( | ||||||
|  |                 'preserveDefault'   => true, | ||||||
|                 'allowEmpty'        => true, |                 'allowEmpty'        => true, | ||||||
|  |                 'value'             => $isAd ? '!(objectClass=computer)' : null, | ||||||
|                 'label'             => $this->translate('LDAP Filter'), |                 'label'             => $this->translate('LDAP Filter'), | ||||||
|                 'description'       => $this->translate( |                 'description'       => $this->translate( | ||||||
|                     'An additional filter to use when looking up users using the specified connection. ' |                     'An additional filter to use when looking up users using the specified connection. ' | ||||||
|  | |||||||
| @ -78,6 +78,23 @@ class AuthBackendPage extends Form | |||||||
|                 'Before you are able to authenticate using the LDAP connection defined earlier you need to' |                 'Before you are able to authenticate using the LDAP connection defined earlier you need to' | ||||||
|                 . ' provide some more information so that Icinga Web 2 is able to locate account details.' |                 . ' provide some more information so that Icinga Web 2 is able to locate account details.' | ||||||
|             )); |             )); | ||||||
|  |             $this->addElement( | ||||||
|  |                 'select', | ||||||
|  |                 'type', | ||||||
|  |                 array( | ||||||
|  |                     'ignore'            => true, | ||||||
|  |                     'required'          => true, | ||||||
|  |                     'autosubmit'        => true, | ||||||
|  |                     'label'             => $this->translate('Backend Type'), | ||||||
|  |                     'description'       => $this->translate( | ||||||
|  |                         'The type of the resource being used for this authenticaton provider' | ||||||
|  |                     ), | ||||||
|  |                     'multiOptions'      => array( | ||||||
|  |                         'ldap'      => 'LDAP', | ||||||
|  |                         'msldap'    => 'ActiveDirectory' | ||||||
|  |                     ) | ||||||
|  |                 ) | ||||||
|  |             ); | ||||||
|         } else { // $this->config['type'] === 'external'
 |         } else { // $this->config['type'] === 'external'
 | ||||||
|             $backendForm = new ExternalBackendForm(); |             $backendForm = new ExternalBackendForm(); | ||||||
|             $backendForm->createElements($formData); |             $backendForm->createElements($formData); | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user