Re: [SLUG] LDAP/SAMBA

From: John Pugh (jpugh@novell.com)
Date: Wed Jan 18 2006 - 12:06:31 EST


>>> On Wed, Jan 18, 2006 at 9:46 am, in message
<125d27dd0601180646g8d4aa02qc98910acbe751c3f@mail.gmail.com>,
daniel.jarboe@gmail.com wrote:
> I don't do gentoo/emerge, but you only get Samba's "ldap port"
> parameter with WITH_LDAP_SAMCONFIG defined.
>
> So whatever you need to do to get emerge to ./configure -- with-
ldapsam
>
> ~ Daniel
>
> On 1/14/06, Craig Zeigler <craig@ctrust.com> wrote:
>> Yes, the use flags are correct... what I was trying to convey was a
>> configuration issue.
>>
>> Darrin Jones wrote:
>>
>> >Did you emerge samba with the LDAP USE flag set?
>> >
>> >elektra ~ # emerge - av samba
>> >
>> >These are the packages that I would merge, in order:
>> >
>> >Calculating dependencies ...done!
>> >[ebuild R ] net- fs/samba- 3.0.14a- r2 - acl +cups - doc -
examples +kerberos
>> >- ldap - libclamav +mysql - oav +pam +postgres +python - quotas
+readline
>> >(- selinux) - winbind - xml +xml2 0 kB
>> >
>> >You will want that to say +ldap. I don't do LDAP so you may have
to
>> >re- emerge LDAP with the samba flag set.
>> >
>> >Darrin
>> >
>> >
>> >
>> >>----- Original Message-----
>> >>From: slug@nks.net [mailto:slug@nks.net] On Behalf Of Craig
Zeigler
>> >>Sent: Friday, January 13, 2006 10:48
>> >>To: slug@nks.net
>> >>Subject: [SLUG] LDAP/SAMBA
>> >>
>> >>I'm messing around with Samba and LDAP and having some issues.
>> >>
>> >>The LDAP server is up and running. I can query it, and all of
>> >>the proper
>> >>entries exist in the directory. phpLDAPadmin works just fine.
>> >>
>> >>I am trying to get Samba to use LDAP for authentication, and am
using
>> >>most of the stock configuration that comes with the Gentoo
>> >>config files.
>> >>Obviously I've changed the important bits to fit my server.
>> >>
>> >>When I attempt to start samba, I get the following output in
>> >>log.smbd :
>> >>
>> >>[2006/01/13 11:50:46, 0] smbd/server.c:main(798)
>> >> smbd version 3.0.14a started.
>> >> Copyright Andrew Tridgell and the Samba Team 1992- 2004
>> >>[2006/01/13 11:50:46, 0] param/loadparm.c:map_parameter(2462)
>> >> Unknown parameter encountered: "ldap port"
>> >>[2006/01/13 11:50:46, 0] param/loadparm.c:lp_do_parameter(3144)
>> >> Ignoring unknown parameter "ldap port"
>> >>[2006/01/13 11:50:46, 0] param/loadparm.c:map_parameter(2462)
>> >> Unknown parameter encountered: "ldap server"
>> >>[2006/01/13 11:50:46, 0] param/loadparm.c:lp_do_parameter(3144)
>> >> Ignoring unknown parameter "ldap server"
>> >>
>> >>
>> >>These fields were in the config files when I built samba. I
>> >>have filled
>> >>them out with the proper information. The hostname it is trying
to
>> >>contact are in DNS and resolve properly.
>> >>
>> >>I find myself wondering if anyone with experience in this area
might
>> >>have some idea. For the moment, I'm stumped, but still looking. If
I
>> >>find something I'll let yall know what I find and what the
>> >>fix was, but
>> >>experienced help would be greatly appreciated. Please let me
>> >>know if you
>> >>need more information.
>> >>
>> >>- Craig

Tell us what smbd -b shows (should be ldap in several places there)

You may want to include the ldap section of your smb.conf file as well
(under [globals])

If you don't see anything like "HAVE_LDAP" or pdb_ldap in the builtin
modules section then you don't have ldap support. That error message
relates to smbd not having LDAP support as it doesn't understand the
ldap port and ldap server parameters in your smb.conf file.

...it may be easier to get a precompiled version of samba v3 to install
- your call there. RH and SUSE have LDAP support built in these days.

JP
-----------------------------------------------------------------------
This list is provided as an unmoderated internet service by Networked
Knowledge Systems (NKS). Views and opinions expressed in messages
posted are those of the author and do not necessarily reflect the
official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 16:42:09 EDT