Skip to content

Instantly share code, notes, and snippets.

@Kagee
Created March 6, 2023 14:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Kagee/71b656ee445b091ea1fc67664d5ed967 to your computer and use it in GitHub Desktop.
Save Kagee/71b656ee445b091ea1fc67664d5ed967 to your computer and use it in GitHub Desktop.
...
'ApacheSecureAuth' => array (
'apacheEnv' => 'REDIRECT_REMOTE_USER', # Eventuelt REMOTE_USER
'ldapServer' => 'ldap://ad.example.com',
'starttls' => true, # kommer i 2.4.169, burde fortsatt kunne bli med
'updateUser' => false,
'ldapProtocol' => 3,
'ldapNetworkTimeout' => -1,
'ldapReaderUser' => 'CN=srv_misp,OU=Service Users,DC=example,DC=com',
'ldapReaderPassword' => 'eew5Shiegheevua5iz9rohvi',
'ldapDN' => 'dc=example,dc=com',
'ldapSearchFilter' => '(memberof:1.2.840.113556.1.4.1941:=CN=R_MISP Access,OU=MISP,OU=Access Groups,DC=example,DC=com)',
'ldapSearchAttribut' => 'samaccountname', # Atributten som kommer i REDIRECT_REMOTE_USER/REMOTE_USER
'ldapFilter' =>
array (
0 => 'mail', # Request both mail and userprincipalname since we need them for ldapEmailField
1 => 'userprincipalname',
),
'ldapDefaultRoleId' => 3, # Make Users as default
'ldapDefaultOrg' => '2', # Put users into org ID 2 by default
'ldapAllowReferrals' => false,
'ldapEmailField' =>
array (
0 => 'mail', # If user has mail attribute, use that as MISP email
1 => 'userprincipalname', # If not, use userprincipalname as MISP email
),
),
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment