Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 Jul 2009 09:29:20 +0800
From:      Ruel Luchavez <ruel.freebsd@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   Samba PDC with LDAP backend
Message-ID:  <ee9dc2b40907171829r5afbc885u1f84b2054ff4f5e5@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hi amazing list...

I want to set up Samba PDC with LDAP
I Have installed the following package:

smblap-tools-0.9.5.tgz
samba-3.0.35.tar.gz
nss_ldap-264.tar.gz
openldap-2.4.16.tgz

all the installation are successful, but when I'm going to populate the
database I get this weird error saying:

#smbldap-populate -u 10000 -g 10000 -r 10000

erreur LDAP: Can't contact master ldap server for writing
(IO::Socket::INET:connect: Conneciton refused) at
/usr/local/lib/perl4/site_perl/5.8.9/smbldap_tools.pm line 322

>>when I look at the smblap_tools.pm at line 322 this is what it look likes
and sorry I cant understand the code:

else {
        $ldap_master = Net::LDAP->new(   <--This is line 322
            "$config{masterLDAP}",
            port    => "$config{masterPort}",
            version => 3,
            timeout => 60,

By the way:
########################################
##This is my slapd.conf####################
########################################

include         /usr/local/etc/openldap/schema/cosine.schema

include         /usr/local/etc/openldap/schema/inetorgperson.schema

include         /usr/local/etc/openldap/schema/misc.schema

include         /usr/local/etc/openldap/schema/nis.schema

include         /usr/local/etc/openldap/schema/openldap.schema

include         /usr/local/etc/openldap/schema/samba.schema



loglevel 256



pidfile         /var/run/openldap/slapd.pid

argsfile        /var/run/openldap/slapd.args



# Load dynamic backend modules:

modulepath      /usr/local/libexec/openldap

moduleload      back_bdb



#######################################################################

# BDB database definitions

#######################################################################



database        bdb

suffix          "dc=mydomain,dc=local"

rootdn          "cn=Manager,dc=mydomain,dc=local"

#rootpw = very-secure-password

rootpw          {SSHA}X5/8nZm2DLooMyZgsUcWnRC1kXyCh+v



directory       /usr/local/var/db/openldap-data



# Indices to maintain

index   objectClass     eq

index   cn              pres,sub,eq

index   sn              pres,sub,eq

index   uid             pres,sub,eq

index   displayName     pres,sub,eq

index   uidNumber               eq

index   gidNumber               eq

index   memberUID               eq

index   sambaSID                eq

index   sambaPrimaryGroupSID    eq

index   sambaDomainName         eq

index   default                 sub


Note: service slapd is running

Does anyone here have the same problem?
Any idea?


-- 
RhueL
FreeBSD user since 6.0
Happy BSD use...
Country:Philippines
Zip Code:8000



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ee9dc2b40907171829r5afbc885u1f84b2054ff4f5e5>