Martin Lefebvre
2005-Aug-29 04:43 UTC
[Samba] Samba+MySQL+Apache Authentication = possible?
Good evening, I don't know if this is the right place to ask... but I gotta start somewhere.. I have Samba setup as a PDC for my domain using the MySQL passdb backend for authentication. I would also like to use other components such as mod_auth_mysql for apache authentication. Is there a way that it can use one of the 2 password fields from the samba MySQL table (nt_pw or lm_pw) in order to do the authentication through the web server? With mod_auth_mysql, I can set several encryption methods, such as md5, or des, etc. The passwords in the samba MySQL table seem to be encrypted with md5 (I'm saying that just because they're all 32 characters long), but whenever I try using them through mod_auth_mysql, the password is not recognized. Any pointers? -- Martin Lefebvre Unix Integration Consultant SIGTerm Technologies eMail: dadexter@gmail.com
Hmm, must be do-able, there are several modules for apache available. mod_ntlm for example.. lets you authenticate against a PDC (pref. samba) nomather what backend you use. there are also some PAM modules around, so you can setup apache to use PAM for authentication, and then you let PAM use the PDC. just google around... Greetz Collen (MLHJ) Martin Lefebvre wrote:> Good evening, > > I don't know if this is the right place to ask... but I gotta start > somewhere.. > > I have Samba setup as a PDC for my domain using the MySQL passdb backend for > authentication. I would also like to use other components such as > mod_auth_mysql for apache authentication. > > Is there a way that it can use one of the 2 password fields from the samba > MySQL table (nt_pw or lm_pw) in order to do the authentication through the > web server? > > With mod_auth_mysql, I can set several encryption methods, such as md5, or > des, etc. The passwords in the samba MySQL table seem to be encrypted with > md5 (I'm saying that just because they're all 32 characters long), but > whenever I try using them through mod_auth_mysql, the password is not > recognized. > > Any pointers? >
Bruno Guerreiro
2005-Aug-29 07:56 UTC
[Samba] Samba+MySQL+Apache Authentication = possible?
Hi, According to this http://www.samba.org/samba/docs/man/smbpasswd.5.html , the passwords are either DES or MD4, not MD5. Hopes this info helps you. Best regards, Bruno Guerreiro -----Original Message----- From: Martin Lefebvre [mailto:dadexter@gmail.com] Sent: segunda-feira, 29 de Agosto de 2005 5:44 To: samba@lists.samba.org Subject: [Samba] Samba+MySQL+Apache Authentication = possible? Good evening, I don't know if this is the right place to ask... but I gotta start somewhere.. I have Samba setup as a PDC for my domain using the MySQL passdb backend for authentication. I would also like to use other components such as mod_auth_mysql for apache authentication. Is there a way that it can use one of the 2 password fields from the samba MySQL table (nt_pw or lm_pw) in order to do the authentication through the web server? With mod_auth_mysql, I can set several encryption methods, such as md5, or des, etc. The passwords in the samba MySQL table seem to be encrypted with md5 (I'm saying that just because they're all 32 characters long), but whenever I try using them through mod_auth_mysql, the password is not recognized. Any pointers? -- Martin Lefebvre Unix Integration Consultant SIGTerm Technologies eMail: dadexter@gmail.com -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba