Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

(Debian Squeeze) I have Apache authenticating via Kerberos - that works fine. Now I want to restrict the site to a single group only, so I need to add LDAP authorization. I enabled authnz_ldap and edited the apache config. When I use the "Require ldap-group" directive I get the following error in the apache error log:

gss_display_name() failed: A required input parameter could not be read: An invalid name was supplied (, Unknown error)

The config in the apache.conf is:

<Directory /var/www/kerberos>
AuthType Kerberos
AuthName "Kerberos Login"
KrbMethodNegotiate On
KrbMethodK5Passwd On
Krb5KeyTab /etc/krb5.keytab
KrbServiceName HTTP/webserver.mydomain.local@MYDOMAIN.LOCAL
AuthLDAPURL "ldap://primarydc.mydomain.local/DC=mydomain,DC=local?sAMAccountName?sub?(objectClass=*)"
AuthLDAPBindDN "LDAPlookup@mydomain.local"
AuthLDAPBindPassword topsecretpassword
Require ldap-group CN=Mygroup,OU=mydomain,DC=local

I've tried adding "KrbLocalUserMapping On" but the same problem remained.

If I disable the Require ldap-group line everything works fine, I can authenticate via kerberos and see my username in the logs (either as firstname.last@MYDOMAIN.LOCAL or just firstname.last with KrbLocalUserMapping On)

How can I make this work?

Edit: I just tried

AuthLDAPURL ldap://,DC=com,DC=au,DC=local?userPrincipalName

with KrbLocalUserMapping disabled, and had the same result.

share|improve this question
did you found a solution? I have the same problem. This seems to be a bug in apache httpd 2.2. Have a look at… Regards Jan – roehrijn Jun 14 '13 at 11:39
Your "AuthName" kerberos login. Is this set on the other side? It seems like it doesn't recognizes this name. Try something else. – Arif Dolgunyurek Dec 16 '14 at 14:20

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.