Skip to content

Instantly share code, notes, and snippets.

@shichao-an
Created February 3, 2015 19:53
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 shichao-an/d327006a9bed25fcfed4 to your computer and use it in GitHub Desktop.
Save shichao-an/d327006a9bed25fcfed4 to your computer and use it in GitHub Desktop.
Ubuntu and LDAP: force authentication during a bind request
# ldapadd -Y EXTERNAL -H ldapi:/// -f ldap_disable_bind_anon.ldif
dn: cn=config
changetype: modify
add: olcDisallows
olcDisallows: bind_anon
dn: cn=config
changetype: modify
add: olcRequires
olcRequires: authc
dn: olcDatabase={-1}frontend,cn=config
changetype: modify
add: olcRequires
olcRequires: authc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment