Advertisement

02.13.2008 at 07:59PM PST, ID: 23161991
[x]
Attachment Details

Samba PDC + samba BDC + ldap backend

Asked by blowfly in Samba File Server

Tags: Samba, 3

Hello,

I have another samba related question.I have setup a box with Debian etch, it is currently by PDC with a backend of ldap. Both the ldap directory and samba is installed on this box.

I setup another box, which will act as my BDC, this box will also host file shares for the rest of the network.  I have setup samba as a BDC and have it linked to the ldap directory which is hosted on my PDC.  On my BDC I ran the command "net groupmap list". ALl the groups which are in the directory appear. So I am assuming that my BDC is reading the directory fine. When i browse to a directory from windows, which my BDC is hosting, i get prompted for my credentials. I enter the correct credentials as they are in the directory, and it says that my username and password is wrong. Can someone tell me why this is? Do I have to configure nsswitch.conf file and tell it to use ldap?

What other configurations do I need to do?Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
Smb.conf file on BDC
[global]
        workgroup = midgard
        server string = The Web
        obey pam restrictions = Yes
        passdb backend = ldapsam:ldap://192.168.1.254
        passwd program = /usr/bin/passwd %u
        passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n *password\supdated\ssuccessfully* .
        syslog = 0
        log file = /var/log/samba/log.%m
        max log size = 1000
        logon script = logon.bat
        logon path =
        logon drive = P:
        domain logons = Yes
        domain master = No
        dns proxy = No
        wins support = Yes
        ldap admin dn = cn=admin,dc=example,dc=net
        ldap group suffix = ou=Groups
        ldap machine suffix = ou=machines
        ldap suffix = dc=jims,dc=net
        ldap user suffix = ou=People
        panic action = /usr/share/samba/panic-action %d
        invalid users = root
        [shared]
        comment = test share
        path = /home/shared
        guest ok = Yes
 
 
 
smb.conf on PDC
 
[global]
        workgroup = midgard
        server string = PDCLDAP
        obey pam restrictions = Yes
        passdb backend = ldapsam:ldap://127.0.0.1
        passwd program = /usr/bin/passwd %u
        passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n *password\supdated\ssuccessfully* .
        syslog = 0
        log file = /var/log/samba/log.%m
        max log size = 1000
        name resolve order = lmhosts host wins bcast
        logon script = logon.bat
        logon path =
        logon drive = P:
        domain logons = Yes
        dns proxy = No
        wins support = Yes
        ldap admin dn = cn=admin,dc=example,dc=net
        ldap group suffix = ou=Groups
        ldap machine suffix = ou=machines
        ldap suffix = dc=jims,dc=net
        ldap user suffix = ou=People
        panic action = /usr/share/samba/panic-action %d
        invalid users = root
 
Loading Advertisement...
 
[+][-]02.17.2008 at 02:15PM PST, ID: 20916024

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Samba File Server
Tags: Samba, 3
Sign Up Now!
Solution Provided By: blowfly
Participating Experts: 0
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628