Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Auth_LDAP with Active Directory
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
KsE
Apprentice
Apprentice


Joined: 18 Mar 2003
Posts: 269
Location: St. Cloud, MN

PostPosted: Mon Mar 22, 2004 8:37 pm    Post subject: Auth_LDAP with Active Directory Reply with quote

I'm trying to get user authentication for apache to work with windows domain accounts via active directory. I haven't seen much documentation on this yet.

I'm using apache1 not 2. I have ldap installed and auth_ldap module for apache. As far as I can tell, there isn't anything else I need.

httpd.conf
Code:

<Directory "/path/to/dir">
        AuthLDAPEnabled On
        #AuthLDAPBindDN  "ip/dc=domain,dc=com,ou=ou here,cn=cn here"
        #AuthLDAPBindPassword ""
        AuthLDAPURL ldap://ip/CN=cn here,OU=ou here,DC=domain,DC=com
        AuthName "AuthName"
        AuthType Basic
        require valid-user
</Directory>


/var/log/httpd/error_log
Code:

[Fri Mar 19 14:19:51 2004] [error] [client myIP] Search must return exactly
1 entry; found 0 entries for search (&(objectclass=*)(uid=joe.user)): URI
/dir


I don't know what I'm doing. I probably have the wrong url or something. Can anyone help me with this?

-KsE
Back to top
View user's profile Send private message
rinacabj
Tux's lil' helper
Tux's lil' helper


Joined: 26 Dec 2003
Posts: 82
Location: Richmond, VA

PostPosted: Fri Jun 25, 2004 6:24 pm    Post subject: Reply with quote

I'm having a sort of the same problem. Only difference is I'm using apache2. All the modules are in and apache loads, but I can't get any authentication box. It just says forbidden. Were you able to get it to work?
Back to top
View user's profile Send private message
jayc
n00b
n00b


Joined: 05 Feb 2003
Posts: 26

PostPosted: Mon Jun 28, 2004 5:09 am    Post subject: Reply with quote

Theoretically, I would say that you can't use the LDAP module to authenticate against Active Directory. I don't know this for sure, but this why I think that.

AD uses a bastardized form of Kerberos for authentication. All Kerberos does is store a list of users and password and grant tickets. LDAP is used for user information, etc. Therefore, since LDAP has no idea of what the password is (only Kerberos would), you can't use the LDAP module.

I could be wrong, but that is how AD works. I'd look into an NTLM authentication module or try using the Apache Kerberos auth module. AD uses Kerberos from the MIT folks, anyhow.
Back to top
View user's profile Send private message
rinacabj
Tux's lil' helper
Tux's lil' helper


Joined: 26 Dec 2003
Posts: 82
Location: Richmond, VA

PostPosted: Mon Jun 28, 2004 7:37 pm    Post subject: Reply with quote

someone please tell me this isn't true, and if it is what can be used instead
Back to top
View user's profile Send private message
nobspangle
Veteran
Veteran


Joined: 23 Mar 2004
Posts: 1318
Location: Manchester, UK

PostPosted: Mon Jun 28, 2004 10:09 pm    Post subject: Reply with quote

I don't know much about authentication in apache passed using .htaccess files, but if you can authenticate against pam then I would assume you could use winbind to do the authentication.
Back to top
View user's profile Send private message
bin-doph
Guru
Guru


Joined: 23 May 2003
Posts: 302

PostPosted: Tue Jun 29, 2004 9:03 am    Post subject: Reply with quote

Do you have granted rights to "Everybody" or why aren't you binding with user/pass credentials to AD? By default "Everybody" doesn't have the rights to query the userdb but it doesn't aborts with something like "access denied" since "Everybody" does still have access... You should try with an account for your needs, since all "Autenticated Users" do have the rights to query those informations. Since I never used auth_ldap with apache I don't know if a normal user is enough...

maybe this helps http://www.contactor.se/~dast/svnusers/archive-2004-03/0877.shtml

hth
-fe
_________________
perl -e '$_=q;4a75737420616e6f74686572205065726c204861636b65720as;;for(s;s;s;s;s;s;s;s;s;s;s;s){s;(..)s?;qq qprint chr 0x$1 and \161 ssq;excess;}'
Back to top
View user's profile Send private message
bin-doph
Guru
Guru


Joined: 23 May 2003
Posts: 302

PostPosted: Tue Jun 29, 2004 10:19 am    Post subject: Reply with quote

Well since I'm currently doing something similar and mod-ntlm is pretty crappy I tested auth_ldap ... works like a charm. So I guess a proper user is what u need. Use a bind and check that your query is ok (u don't even need an administrative account)

hth
-fe
_________________
perl -e '$_=q;4a75737420616e6f74686572205065726c204861636b65720as;;for(s;s;s;s;s;s;s;s;s;s;s;s){s;(..)s?;qq qprint chr 0x$1 and \161 ssq;excess;}'
Back to top
View user's profile Send private message
rinacabj
Tux's lil' helper
Tux's lil' helper


Joined: 26 Dec 2003
Posts: 82
Location: Richmond, VA

PostPosted: Tue Jun 29, 2004 5:45 pm    Post subject: Reply with quote

bin-doph - here's your chance to be a real hero!

A post of what I'm trying to do/my current set-up is:
https://forums.gentoo.org/viewtopic.php?t=191372

If you could pretty please take a look and tell me what you think I may need. I'm driving myself crazy with it and can't figure it out. I said pretty please :)
Back to top
View user's profile Send private message
bin-doph
Guru
Guru


Joined: 23 May 2003
Posts: 302

PostPosted: Wed Jun 30, 2004 12:34 pm    Post subject: Reply with quote

wow, I always wanted to be a real hero....lets give it a shot
_________________
perl -e '$_=q;4a75737420616e6f74686572205065726c204861636b65720as;;for(s;s;s;s;s;s;s;s;s;s;s;s){s;(..)s?;qq qprint chr 0x$1 and \161 ssq;excess;}'
Back to top
View user's profile Send private message
mgladding4423
n00b
n00b


Joined: 12 May 2005
Posts: 15

PostPosted: Thu Sep 01, 2005 3:34 pm    Post subject: Reply with quote

nobspangle wrote:
I don't know much about authentication in apache passed using .htaccess files, but if you can authenticate against pam then I would assume you could use winbind to do the authentication.


We have this working, but only problem is since we're using winbind, the username has to be typed in as DOMAINNAME_<username> (as _ is our winbind seperator). Does anyone have any clue or tip on how to make it so that the username when passed to the server will tack on DOMAINNAME_ without typing it in with the username?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum