From owner-freebsd-questions@FreeBSD.ORG Sat Jul 18 01:57:24 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 17A4B106566B for ; Sat, 18 Jul 2009 01:57:24 +0000 (UTC) (envelope-from ruel.freebsd@gmail.com) Received: from mail-yx0-f181.google.com (mail-yx0-f181.google.com [209.85.210.181]) by mx1.freebsd.org (Postfix) with ESMTP id BCBB58FC14 for ; Sat, 18 Jul 2009 01:57:23 +0000 (UTC) (envelope-from ruel.freebsd@gmail.com) Received: by yxe11 with SMTP id 11so2055974yxe.3 for ; Fri, 17 Jul 2009 18:57:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=aKda5gUVch40LJ6pUUM8QVm8mJwjxayl3yHxi8EJWa8=; b=YsFVfGsr2BoMbP7kUHYGL24Kt0Ed3TzI9fESjYDTG84MZ2Qob4iM+1qHYvdlpTsNrc LCuUCr3+BizZuPGGI/FHbbGthL97oaSxIFv0yRuFXJS12TIC+PrRmBKBKusdRzM40YLY ySh7d6MWbOrVbMothvjwGjwAyG9BSqkEkTx3E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=qU3RJOfEWgOZJ3MqfSG34n5pHz7gaBVGl4lnuHu1ykrP0GHxFpC3WkMHwFW0uGE+x+ AaNCfQNWp9k9E1UwTcG5G9C6FUd8yanvyKFyg01aoZ1UgXPSOczpSmI/0+7QBwKRukG9 kEw4j6kGhSK+lpqT2+R7Ea4F4CBFMnMYZEfeg= MIME-Version: 1.0 Received: by 10.100.240.5 with SMTP id n5mr2445178anh.80.1247880560047; Fri, 17 Jul 2009 18:29:20 -0700 (PDT) Date: Sat, 18 Jul 2009 09:29:20 +0800 Message-ID: From: Ruel Luchavez To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Samba PDC with LDAP backend X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Jul 2009 01:57:24 -0000 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