Skip to content

Instantly share code, notes, and snippets.

@oko
Created July 3, 2016 16:38
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oko/a189b637492abbfb5fdc3c584aa2928d to your computer and use it in GitHub Desktop.
Save oko/a189b637492abbfb5fdc3c584aa2928d to your computer and use it in GitHub Desktop.
Pulp LDAP setup with FreeIPA
<Files webservices.wsgi>
# pass everything that isn't a Basic auth request through to Pulp
SetEnvIfNoCase ^Authorization$ "Basic.*" USE_APACHE_AUTH=1
Order allow,deny
Allow from env=!USE_APACHE_AUTH
Satisfy Any
AuthType Basic
AuthBasicProvider ldap
AuthName "Pulp Login"
AuthLDAPUrl "ldap://hostname/cn=users,cn=accounts,dc=example,dc=com?uid?sub?(memberOf=cn=group,cn=groups,cn=accounts,dc=example,dc=com)"
AuthLDAPBindDN "uid=service-account,cn=sysaccounts,cn=etc,dc=example,dc=com"
AuthLDAPBindPassword ""
AuthLDAPRemoteUserAttribute uid
#AuthzLDAPAuthoritative On
Require valid-user
WSGIPassAuthorization On
WSGIProcessGroup pulp
WSGIApplicationGroup pulp
SSLRenegBufferSize 1048576
SSLRequireSSL
SSLVerifyDepth 3
SSLOptions +StdEnvVars +ExportCertData
SSLVerifyClient optional
</Files>
dn: uid=service-account,cn=sysaccounts,cn=etc,dc=example,dc=com
changetype: add
objectclass: account
objectclass: simplesecurityobject
uid: service-account
userPassword: password
passwordExpirationTime: 20380119031407Z
nsIdleTimeout: 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment