Hello Henrik,
Thanks
I done it.This is output shoen hy gdb and backtrace.I am not able to
understand what it tells
Starting program:
/usr/local/squid-2.4.STABLE3/auth_modules/LDAP/squid_ldap_auth
-b ou=Development,dc=ldap,dc=squid,dc=com -f uid=%s ldap
jack jack
squid_ldap_auth: error.c:221: ldap_parse_result: Assertion `r != ((void
*)0)' failed.
Program received signal SIGABRT, Aborted.
0x400cd801 in __kill () from /lib/i686/libc.so.6
(gdb) backtrace
#0 0x400cd801 in __kill () from /lib/i686/libc.so.6
#1 0x400cd5da in raise (sig=6) at ../sysdeps/posix/raise.c:27
#2 0x400ced82 in abort () at ../sysdeps/generic/abort.c:88
#3 0x400c6cca in __assert_fail () at assert.c:60
#4 0x40026d26 in ldap_parse_result () at eval.c:41
#5 0x40026c4f in ldap_result2error () at eval.c:41
#6 0x08049388 in checkLDAP () at eval.c:41
#7 0x08049142 in main () at eval.c:41
#8 0x400bc177 in __libc_start_main (main=0x8048b60 <main>, argc=6,
ubp_av=0xbffffa8c, init=0x804882c <_init>, fini=0x8049550 <_fini>,
rtld_fini=0x4000e184 <_dl_fini>, stack_end=0xbffffa7c)
at ../sysdeps/generic/libc-start.c:129
Thanks
Jack
----- Original Message -----
From: Henrik Nordstrom <hno@marasystems.com>
To: Jack <sa_jill@yahoo.co.uk>
Cc: Squid Users <squid-users@squid-cache.org>
Sent: Friday, December 07, 2001 12:07 AM
Subject: Re: [squid-users] ldap auth
> Jack wrote:
> >
> > Hello all,
> >
> > squid_ldap_auth -b ou=Development,dc=ldap,dc=squid,dc=com -f uid=logu
ldap
>
> Think you actually want -f uid=%s
>
> >
> > jack jack
> > squid_ldap_auth: error.c:221: ldap_parse_result: Assertion `r != ((void
> > *)0)' failed.
> > Aborted (core dumped)
>
> This is an error message internal to OpenLDAP. Very hard to tell what
> has gone wrong. Perhaps a stack trace could tell more.
>
> gdb squid_ldap_auth
> run -b ou=Development,dc=ldap,dc=squid,dc=com -f uid=%s ldap
> jack jack
>
> If if crashes, type
> backtrace
>
>
> > DN in ldif file is
> > dn: uid=jack,ou=Development,dc=ldap,dc=squid,dc=com
> >
> > How to do squid_ldap_auth search for this dn.
>
> If all your users are in the same ou using a flat user tree, then there
> is no need to search. If your users are spread on different ou's then
> specify the common part of the DN as base DN and use a search filter (-f
> option).
>
>
> Regards
> Henrik Nordström
> Squid Hacker
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
Received on Thu Dec 06 2001 - 22:18:55 MST
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:05:16 MST