The FreeBSD Diary

The FreeBSD Diary (TM)

Providing practical examples since 1998

If you buy from Amazon USA, please support us by using this link.
[ HOME | TOPICS | INDEX | WEB RESOURCES | BOOKS | CONTRIBUTE | SEARCH | FEEDBACK | FAQ | FORUMS ]
FreeBSD Support
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Newer Topic  |  Older Topic 
 Problem about "LDAP Authentication"
Author: sharpknifeedge 
Date:   07-12-03 08:52

I am using FreeBSD ver 5.0 with squid 2.5 Stable 3. I want to use "external_acl" to be able to use LDAP against my Windows Active Direcoty. When I want to make the "ldap_group" I got this messages ...

source='squid_ldap_group.c' object='squid_ldap_group.o' libtool=no depfile='.deps/squid_ldap_group.Po' tmpdepfile='.deps/squid_ldap_group.TPo' depmode=gcc3 /bin/sh ../../../cfgaux/depcomp cc -DHAVE_CONFIG_H -I. -I. -I../../../include -O -pipe -mcpu=pentiumpro -c `test -f squid_ldap_group.c || echo './'`squid_ldap_group.c
squid_ldap_group.c:128:18: lber.h: No such file or directory
squid_ldap_group.c:129:24: ldap_cdefs.h: No such file or directory
squid_ldap_group.c:130:18: ldap.h: No such file or directory
squid_ldap_group.c:143: `LDAP_SCOPE_SUBTREE' undeclared here (not in a function)
squid_ldap_group.c:147: `LDAP_DEREF_NEVER' undeclared here (not in a function)
squid_ldap_group.c:155: syntax error before '*' token
squid_ldap_group.c:185: syntax error before '*' token
squid_ldap_group.c: In function `squid_ldap_errno':
squid_ldap_group.c:187: `ld' undeclared (first use in this function)
squid_ldap_group.c:187: (Each undeclared identifier is reported only once
squid_ldap_group.c:187: for each function it appears in.)
squid_ldap_group.c: At top level:
squid_ldap_group.c:190: syntax error before '*' token
squid_ldap_group.c: In function `squid_ldap_set_aliasderef':
squid_ldap_group.c:192: `ld' undeclared (first use in this function)
squid_ldap_group.c:192: `deref' undeclared (first use in this function)
squid_ldap_group.c: At top level:
squid_ldap_group.c:195: syntax error before '*' token
squid_ldap_group.c: In function `squid_ldap_set_referrals':
squid_ldap_group.c:197: `referrals' undeclared (first use in this function)
squid_ldap_group.c:198: `ld' undeclared (first use in this function)
squid_ldap_group.c:198: `LDAP_OPT_REFERRALS' undeclared (first use in this function)
squid_ldap_group.c: In function `main':
squid_ldap_group.c:260: `LDAP' undeclared (first use in this function)
squid_ldap_group.c:260: `ld' undeclared (first use in this function)
squid_ldap_group.c:262: `LDAP_PORT' undeclared (first use in this function)
squid_ldap_group.c:322: `LDAP_SCOPE_BASE' undeclared (first use in this function)
squid_ldap_group.c:324: `LDAP_SCOPE_ONELEVEL' undeclared (first use in this function)
squid_ldap_group.c:326: `LDAP_SCOPE_SUBTREE' undeclared (first use in this function)
squid_ldap_group.c:334: `LDAP_DEREF_NEVER' undeclared (first use in this function)
squid_ldap_group.c:336: `LDAP_DEREF_ALWAYS' undeclared (first use in this function)
squid_ldap_group.c:338: `LDAP_DEREF_SEARCHING' undeclared (first use in this function)
squid_ldap_group.c:340: `LDAP_DEREF_FINDING' undeclared (first use in this function)
squid_ldap_group.c:486: `LDAP_SUCCESS' undeclared (first use in this function)
squid_ldap_group.c:514: `LDAP_INVALID_CREDENTIALS' undeclared (first use in this function)
squid_ldap_group.c: At top level:
squid_ldap_group.c:606: syntax error before '*' token
squid_ldap_group.c: In function `searchLDAPGroup':
squid_ldap_group.c:610: `LDAPMessage' undeclared (first use in this function)
squid_ldap_group.c:610: `res' undeclared (first use in this function)
squid_ldap_group.c:611: `entry' undeclared (first use in this function)
squid_ldap_group.c:614: `extension_dn' undeclared (first use in this function)
squid_ldap_group.c:619: `member' undeclared (first use in this function)
squid_ldap_group.c:619: `group' undeclared (first use in this function)
squid_ldap_group.c:627: `ld' undeclared (first use in this function)
squid_ldap_group.c:628: `LDAP_SUCCESS' undeclared (first use in this function)
squid_ldap_group.c:629: `LDAP_PARTIAL_RESULTS' undeclared (first use in this function)
squid_ldap_group.c: At top level:
squid_ldap_group.c:649: syntax error before '*' token


Any comments ?

Reply To This Message
 
 Re: Problem about "LDAP Authentication"
Author: zman 
Date:   12-12-03 04:51

this line seem like your compiler cannot find header file

>squid_ldap_group.c:128:18: lber.h: No such file or directory
>squid_ldap_group.c:129:24: ldap_cdefs.h: No such file or directory
> squid_ldap_group.c:130:18: ldap.h: No such file or directory

install ldap server first , then copy /usr/local/include/ldap* to
then copy /usr/local/include/lber* to /usr/include/ .

compile again it should work fine ....



Reply To This Message
 
 Re: Problem about "LDAP Authentication"
Author: zman 
Date:   12-12-03 04:53

correction

install ldap server first , then copy /usr/local/include/ldap* to /usr/include/
then copy /usr/local/include/lber* to /usr/include/ .

Reply To This Message
 
 Re: Problem about "LDAP Authentication"
Author: sharpknifeedge 
Date:   12-12-03 07:53

Thank you so very much for your help.

I am using a squid 2.4 STABLE 7 now and I did all procedures that you told me. I installed Openldap21-server first, then copied both of those files related to "ldap.h" and "lber.h". Now I am receiving a new error message as follows:

###############################################
cc -g -o squid_ldap_auth squid_ldap_auth.o -lldap -llber -lm
/usr/libexec/elf/ld: cannot find -lldap
*** Error code 1

Stop in /usr/ports/www/squid24/work/squid-2.4.STABLE7/auth_modules/LDAP.
###############################################

I have searched for "lldap" but it showed me:
################################################
/usr/ports/www/apache21/work/httpd-2.0.48/modules/experimental/NWGNUutilldap
################################################

What else should I do to make and make install that authentication module?

Thank you again

Reply To This Message
 
 Re: Problem about "LDAP Authentication"
Author: zman 
Date:   15-12-03 01:49

try run this .... run " ldconfig /usr/local/lib" , make clean then make install

Reply To This Message
 
 Re: Problem about "LDAP Authentication"
Author: sharpknifeedge 
Date:   15-12-03 20:21

Dear friend,

First of all thank you for your help and attention.
I did these procedures ...

1- cd /usr/ports/www/squid24/work/squid-2.4.STABLE7/auth_modules/LDAP
2- ldconfig /usr/local/lib
3- make clean
4- make install


But I got the same error again.


Thank you again and looking forward for your help :)

Reply To This Message
 
 Re: Problem about "LDAP Authentication"
Author: zman 
Date:   22-12-03 10:16

Sorry, i'm buzy last few days, If you still need my help , please send me your email and i will send you Makefile that i fix in order to build squid_ldap_auth.

Reply To This Message
 
 Re: Problem about "LDAP Authentication"
Author: sharpknifeedge 
Date:   22-12-03 19:15

Dear zman,

Thank you so very much for your kind attention. I still need your help and here are my e-mails:

h_majnoonian@hotmail.com
sharpknifeedge@samrand.com

I would be so happy and thankful if you can help me on this problem.



Cheers

Reply To This Message
 
 Re: Problem about "LDAP Authentication"
Author: core_dumped 
Date:   17-03-05 12:27

i had the same problem.

In my instalation i did it

cp /usr/local/lib/*ldap* /usr/lib
cp /usr/local/lib/*lber* /usr/lib
cp /usr/local/include/*ldap* /usr/include
cp /usr/local/include/*lber* /usr/include

and then a make.

then all works fine.


Cheers

Reply To This Message
 Forum List  |  Threaded View   Newer Topic  |  Older Topic 


 Forum List  |  Need a Login? Register Here 
 User Login
 User Name:
 Password:
 Remember my login:
   
 Forgot Your Password?
Enter your email address or user name below and a new password will be sent to the email address associated with your profile.
How to get the most out of the forum

phorum.org