Bug 1332 - Can't build Samba 3 with LDAP support for SUN directory Server 5.2
Summary: Can't build Samba 3 with LDAP support for SUN directory Server 5.2
Status: RESOLVED WONTFIX
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: Build environment (show other bugs)
Version: 3.0.3
Hardware: All Solaris
: P3 enhancement
Target Milestone: none
Assignee: Gerald (Jerry) Carter (dead mail address)
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-09 08:40 UTC by Thomas Müller
Modified: 2004-10-29 07:49 UTC (History)
1 user (show)

See Also:


Attachments
config.log (340.55 KB, text/*)
2004-05-09 08:45 UTC, Thomas Müller
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Müller 2004-05-09 08:40:52 UTC
I'm trying to build Samba against the libldap/libsasl from the SDK of the Sun
directory server 5.2 under Solaris 8. Due to the fact that there are two
functions missing in the libldap from Sun, it is not possible to get LDAP
support for the 5.2 directory server. The missing functions are:

ldap_domain2hostlist and ldap_initialize

I will attach the config.log so that you can see what happens. How can we solve
this problem?

Thomas
Comment 1 Thomas Müller 2004-05-09 08:45:17 UTC
Created attachment 500 [details]
config.log
Comment 2 Tim Potter 2004-05-09 17:25:22 UTC
I am pretty sure that Samba only supports OpenLDAP at the moment.

Jerry, is this correct?
Comment 3 Gerald (Jerry) Carter (dead mail address) 2004-05-09 19:25:48 UTC
Marking this as an enhancement.  

Thomas, I thought you were going to work on getting this up 
and running ?  If so, then I guess that this report is to help
you track progress?
Comment 4 Thomas Müller 2004-05-09 23:40:27 UTC
Jerry,
I opened this bug ID, because I'm not able to solve this problem. I solved the
problem with libsasl (see bug ID 1331) but now I need help. 
When running configure the tests for ldap_domain2hostlist and ldap_initialize
fail and therefor no LDAP support is available. I think configure has to be
modified in this was, that in this specific case it will generate the needed
definitions for the two functions, but I don't know if this is the rigth solution.
In your opinion, what might be a solution for this problem?
Comment 5 Thomas Müller 2004-05-13 13:27:47 UTC
Jerry,
I did some examination about ldap_domain2hostlist and ldap_initialize.

ldap_domain2hostlist is used in libsmb/namequery.c and utils/net_lookup.c
ldap_initialize is used in lib/smbldap.c and libads/ldap.c

question: would it be possible to replace this two functions in the files
mentioned above and delete the tests form them in configure? If yes, I think
this would be a good way to solve the problem. If not, how can we provide this
two functions? 

When I look at the sources of libldap from openldap, ldap_initialize is defined
in open.c and ldap_domain2hostlist is defined in dnssrv.c

Would it be possible to replace the function-calls for the two functions in
samba with the sourcecode from openldap?
Or do you have another solution for this problem?
Comment 6 Gerald (Jerry) Carter (dead mail address) 2004-10-29 07:49:21 UTC
not planning on support Sun's libs.