Re: [squid-users] Ldap and Active directory

From: Henrik Nordstrom <hno@dont-contact.us>
Date: 07 Apr 2003 16:53:46 +0200

Try without the -P

Regards
Henrik

mċn 2003-04-07 klockan 16.22 skrev kevin stuttard:
> O.K I've got it now. I can test usernames and
> passwords from the command line and get O.K. or ERR
> with the following command
>
> ./squid_ldap_auth -P -b
> DC=mansfield13104,DC=lancsngfl,DC=ac,DC=uk -D
> CN=Administrator,CN=Users,DC=mansfield13104,DC=lancsngfl,DC=ac,DC=uk
> -f sAMAccountName=%s -w xxxxxxx -h pluto:389
>
> This works fine apart from it gives me two lines as a
> reply. The first line says squd_ldap_auth: WARNING,
> LDAP search error 'Can't contact LDAP server'
>
> Then on the next line below it says OK if the
> username/password is valid. Any ideas as I do not want
> to introduce errors into the system if I introduce
> this method of authentication.
>
> --- Henrik Nordstrom <hno@squid-cache.org> escribió:
> > fre 2003-04-04 klockan 16.00 skrev kevin stuttard:
> >
> > > Still having trouble. Here is the line I have
> > tried.
> > > ldapsearch -x -D
> > >
> >
> CN=Administrator,CN=Users,DC=mansfield13104,DC=lancsngfl,DC=ac,DC=uk
> > > -W -b
> > >
> > DC=pluto,DC=mansfield13104,DC=lancsngfl,DC=ac,DC=uk
> >
> >
> > Two small errors here:
> >
> > a) You have not specified which server to query.
> >
> > b) Your base DN is not correct. Should be
> > DC=mansfield13104,DC=lancsngfl,DC=ac,DC=uk I think,
> > or maybe even
> > shorter. The base DN specifies the root of your LDAP
> > tree below which
> > everything else is logically located, not a resource
> > within the LDAP
> > tree such as a domain controller, group, person or
> > other "thing".
> >
> > Regards
> > Henrik
> >
> >
> > --
> > Free Squid-users support provided by Henrik
> > Nordström <hno@squid-cache.org>
> > PayPal donations welcome if you consider my Free
> > Squid support helpful.
> >
> https://www.paypal.com/xclick/business=hno%40squid-cache.org&cn=Comment
> >
> > If you need commercial Squid support or cost
> > effective Squid and
> > firewall appliances please refer to MARA Systems AB,
> > Sweden
> > http://www.marasystems.com/, info@marasystems.com
> >
>
> =====
> Kevin Stuttard
> Head Of ICT Support
> Mansfield High School
> Brierfield
> Nelson
> BB95RX
> Visit our web site -- http://www.mansfieldhighschool.uklinux.net
>
> ___________________________________________________
> Yahoo! Messenger - Nueva versión GRATIS
> Super Webcam, voz, caritas animadas, y más...
> http://messenger.yahoo.es

-- 
Henrik Nordstrom <hno@squid-cache.org>
MARA Systems AB, Sweden
Received on Mon Apr 07 2003 - 08:53:53 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:14:44 MST