Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have an apache2 server setup under ubuntu to authenticate against an Active Directory Domain Controller. It works fine with an .htaccess file in the folder I want to protect with a line like

require valid-user

My problem is I would like to authenticate with group permissions instead. So if I am authenticated on a domain (as matt for example) and I try to access a folder. I should be able to put

require group my_group@my.domain

and it should check to see if the user matt is a member of the my_group active directory group. Am I wrong in thinking this or is it not possible for mod_auth_kerb to do this?

share|improve this question

1 Answer 1

It is not possible for mod_auth_kerb to do this because it is impossible for Kerberos itself to do this. Kerberos is explicitly designed as a authentication, but not authorization, system. That means it does not have groups at all, it just makes sure a person is who they say they are.

Active Directory uses LDAP to store and represent group membership. You could use that to make sure the user you have authenticated with Kerberos is a member of a specific group.

See also: 35363

share|improve this answer

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.