squid ldap auth on OpenBSD
Hello, I try to configure squid with a ldap authentification on a OpenBSD 3.9. I wanted to use squid_ldap_auth but I can not find on my server. Nothing is availabIe on the system about squid and ldap configuration. I red lot of FAQ (squid and *BSD) but I found noting to solve my problem. Can someone help me ?? Al.
Re: squid ldap auth on OpenBSD
Hello Alexandre! This is how I did it the last time. Hello, I try to configure squid with a ldap authentification on a OpenBSD 3.9. I wanted to use squid_ldap_auth but I can not find on my server. Nothing is availabIe on the system about squid and ldap configuration. cd /usr/ports/www/squid edit the Makefile and change the line -enable-basic-auth-helpers to --enable-basic-auth-helpers=bNCSA YP LDAPb write and quit. make The process will die with an error. Change dir to ./w-squid-2.5.STABLE12/build-i386/helpers/basic_auth/LDAP Edit the Makefile there and add the following to the Line DEFAULT_INCLUDE: -I/usr/local/include and add the following to LDADD /usr/local/lib/libldap-2.2.so.7.20 -L/usr/local/lib Now go back to /usr/ports/www/squid and run once again make. At last run make install. The last thing you have to do is to copy the file squid_ldap_auth from /usr/ports/squid/w-squid-2.5.STABLE12/build-i386/helpers/basic_auth/LDAP to /usr/local/libexec Then configure your squid config. This way is not optimal, I know. But for me it was the only way to get it up and running. I am authenticating versus an Windows 2000 Active Directory. Yo need the ldap client package, I think. Some time ago. :) -- Andre Naehring
Re: squid ldap auth on OpenBSD
thanx Andre ! I've done modifications. But when I launch make again, there is the following error message : warning: strcpy() is almost always misused, please use strlcpy() Do you know what means this message ? Andre Naehring a C)crit : Hello Alexandre! This is how I did it the last time. Hello, I try to configure squid with a ldap authentification on a OpenBSD 3.9. I wanted to use squid_ldap_auth but I can not find on my server. Nothing is availabIe on the system about squid and ldap configuration. cd /usr/ports/www/squid edit the Makefile and change the line -enable-basic-auth-helpers to --enable-basic-auth-helpers=bNCSA YP LDAPb write and quit. make The process will die with an error. Change dir to ./w-squid-2.5.STABLE12/build-i386/helpers/basic_auth/LDAP Edit the Makefile there and add the following to the Line DEFAULT_INCLUDE: -I/usr/local/include and add the following to LDADD /usr/local/lib/libldap-2.2.so.7.20 -L/usr/local/lib Now go back to /usr/ports/www/squid and run once again make. At last run make install. The last thing you have to do is to copy the file squid_ldap_auth from /usr/ports/squid/w-squid-2.5.STABLE12/build-i386/helpers/basic_auth/LDAP to /usr/local/libexec Then configure your squid config. This way is not optimal, I know. But for me it was the only way to get it up and running. I am authenticating versus an Windows 2000 Active Directory. Yo need the ldap client package, I think. Some time ago. :)
Re: squid ldap auth on OpenBSD
Hi Alexandre. On 10/6/06, Alexandre ADAM [EMAIL PROTECTED] wrote: But when I launch make again, there is the following error message : warning: strcpy() is almost always misused, please use strlcpy() Thats not an error. Its just a warning. Do you know what means this message ? It means that strcpy() is almos always misused and should be replaced by strlcpy() (or strncpy but OpenBSD prefers strlcpy). HTH, Andreas. -- Hobbes : Shouldn't we read the instructions? Calvin : Do I look like a sissy?
Re: squid ldap auth on OpenBSD
Salute Alexandre, is this an error when you cannot run make successfully? Or only the warning? For me, it seems to be a compiler warning, nothing to care for you at the moment when make completes successfully. But I think this is a squid related warning. So, the squid authors should correct it. If you can compile the squid port without the modifications and without this warning, the warning is generated by your (my) modifications. If this is the case it's going to deep for me :) Am Freitag, den 06.10.2006, 11:49 +0200 schrieb Alexandre ADAM: thanx Andre ! I've done modifications. But when I launch make again, there is the following error message : warning: strcpy() is almost always misused, please use strlcpy() Do you know what means this message ? Greetings, Andre Naehring
Re: squid ldap auth on OpenBSD
thanx a lot, it works ! It was a warning message, it wasn't a problem (see Andreas answer). I've modified squid.conf by adding the following line to use the Ldap authentification : auth_param basic program /usr/local/libexec/squid_ldap_auth -b ou=MyTree -u uid -h MyLDAPserver and it worked at the first time. Thanx everybody. Alex. Andre Naehring a icrit : Salute Alexandre, is this an error when you cannot run make successfully? Or only the warning? For me, it seems to be a compiler warning, nothing to care for you at the moment when make completes successfully. But I think this is a squid related warning. So, the squid authors should correct it. If you can compile the squid port without the modifications and without this warning, the warning is generated by your (my) modifications. If this is the case it's going to deep for me :) Am Freitag, den 06.10.2006, 11:49 +0200 schrieb Alexandre ADAM: thanx Andre ! I've done modifications. But when I launch make again, there is the following error message : warning: strcpy() is almost always misused, please use strlcpy() Do you know what means this message ? Greetings, Andre Naehring