Re: [squid-users] squid+ldap authentication

From: Jack <[email protected]>
Date: Tue, 4 Dec 2001 20:36:20 +0530

Hello Henrik,
I have the same problem in ldap auth

        ldapadd -f /usr/local/var/openldap-ldbm/squid.ldif -xv -D "cn=admin,
dc=ldap, dc=squid, dc=com" -w secret
        ldapsearch -x -D "cn=admin,dc=ldap,dc=squid,dc=com" -W -b
'dc=ldap,dc=squid,dc=com' "objectClass=*" ldap

# ldap, squid, com
dn: dc=ldap, dc=squid, dc=com

# admin, ldap, squid, com
dn: cn=admin, dc=ldap, dc=squid, dc=com

# Development, ldap, squid, com
dn: ou=Development, dc=ldap, dc=squid, dc=com

# Support, ldap, squid, com
dn: ou=Support, dc=ldap, dc=squid, dc=com

# jack, Support, ldap, squid, com
dn: cn=jack, ou=Support, dc=ldap, dc=squid, dc=com

# sathi, Development, ldap, squid, com
dn: cn=sathi, ou=Development, dc=ldap, dc=squid, dc=com

                 ldapsearch -x -D
"cn=sathi,ou=Development,dc=ldap,dc=squid,dc=com" -W -b \
                                    'ou=Development,dc=ldap,dc=squid,dc=com'
"objectClass=*" ldap

Enter LDAP Password:
version: 2

#
# filter: objectClass=*
# requesting: ldap
#

# search result
search: 2
result: 0 Success

            squid_ldap_auth -b 'ou=Development,dc=ldap,dc=squid,dc=com' ldap
sathi sathi
ERR

Where i done the mistake.
Sorry if it is basic question

Thanks
Jack

----- Original Message -----
> If your LDAP directory is structured using DN:s like
>
> UID=<login>, O=USM
>
> then squid_ldap_auth likes to be called as
>
> squid_ldap_auth -b O=USM your.ldap.server
>
> It will then automatically construct DN:s like the above and try to bind
as
> these.
>
>
> To test binding as a user using your favorite LDAP tools use
>
> ldapsearch -x -D "UID=LARRY, O=USM" -W -b O=USM "objectClass=*"
>
> (older versions of OpenLDAP does not require the -x option)
>
> Regards
> Henrik


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

Received on Tue Dec 04 2001 - 08:01:44 MST

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