Forums

zhia c
zhia c
Offline
Resolved
0 votes
hii all

i try to implement PDC - BDC as in http://www.clearfoundation.com/docs/developer/apps/samba/pdc_and_bdc
and i think i done it correctly

then i just try to check if the BDC is working or not,
then i try to stop smb, nmb and winbind service on the PDC server , should be the BDC will working handling the domain
but its not .. user cant login and every client cant share folder / printer

could anybody help me, what;s wrong with my PDC and BDC setting

PDC

[global]
# Setting password change timeout
passwd chat timeout = 60

# General
netbios name = PDC
workgroup = agricon
server string = Samba

# Logging
syslog = 0
log level = 1
log file = /var/log/samba/%L-%m
max log size = 0
utmp = Yes

# Network
bind interfaces only = yes
interfaces = lo eth0
smb ports = 139

# Printing
printcap name = /etc/printcap
load printers = Yes

# Security settings
security = user
guest account = guest
#restrict anonymous = 2

# WINS
wins support = Yes
wins server =

# PDC
domain logons = Yes
add machine script = /usr/sbin/samba-add-machine "%u"
logon drive = T:
logon script = logon.cmd
logon path =
logon home = \\%L\%U

# Other
preferred master = Yes
domain master = Yes
unix password sync = Yes
passwd program = /usr/sbin/userpasswd %u
passwd chat = *password:* %n\n *password:* %n\n *successfully.*
username map = /etc/samba/smbusers
wide links = No
hosts allow = 127.0.0.1 172.16.99.0/24 172.16.1.0/24
hosts deny = 0.0.0.0/0

# LDAP
include = /etc/samba/smb.ldap.conf

# Winbind
include = /etc/samba/smb.winbind.conf
#============================ Share Definitions ==============================

include = /etc/samba/flexshare.conf

[homes]
comment = Home Directories
path = /home/%U
valid users = %D\%S
read only = No
browseable = No
available = Yes

[printers]
comment = Print Spool
path = /var/spool/samba
printing = cups
use client driver = No
printable = Yes
read only = No
browseable = No
available = Yes

[print$]
comment = Printer Drivers
path = /var/samba/drivers
read only = No
browseable = No
available = Yes

[netlogon]
comment = Network Logon Service
path = /var/samba/netlogon
read only = No
locking = No
browseable = No
available = Yes

[profiles]
comment = Profile Share
path = /var/samba/profiles
read only = No
profile acls = Yes
browseable = No
available = No
force group = domain_users
force directory mode = 02775
force directory security mode = 02775



BDC

[global]
# Setting password change timeout
passwd chat timeout = 60

# General
netbios name = proxy
workgroup = agricon
server string = bdc

# Logging
syslog = 0
log level = 1
log file = /var/log/samba/%L-%m
max log size = 0
utmp = Yes

# Network
bind interfaces only = yes
interfaces = lo eth0
smb ports = 139

# Printing
printcap name = /etc/printcap
load printers = Yes

# Security settings
security = user
guest account = guest
#restrict anonymous = 2

# WINS
wins support = yes
#wins server = 172.16.99.3
wins server =

# PDC
domain logons = Yes
add machine script = /usr/sbin/samba-add-machine "%u"
logon drive = T:
logon script = logon.cmd
logon path =
#logon path = \\%L\profiles\%U
logon home = \\%L\%U

# Other
preferred master = Yes
domain master = No
unix password sync = Yes
passwd program = /usr/sbin/userpasswd %u
passwd chat = *password:* %n\n *password:* %n\n *successfully.*
username map = /etc/samba/smbusers
hosts allow = 127.0.0.1 172.16.99.0/24 172.16.1.0/24

wide links = No

# LDAP
include = /etc/samba/smb.ldap.conf

# Winbind
include = /etc/samba/smb.winbind.conf

#============================ Share Definitions ==============================

include = /etc/samba/flexshare.conf

[homes]
comment = Home Directories
path = /home/%U
valid users = %D\%S
read only = No
browseable = No
available = Yes

[printers]
comment = Print Spool
path = /var/spool/samba
printing = cups
cups options = raw
use client driver = Yes
printable = Yes
read only = No
browseable = No
available = No
[print$]
comment = Printer Drivers
path = /var/samba/drivers
read only = No
browseable = No
available = No

[netlogon]
comment = Network Logon Service
path = /var/samba/netlogon
read only = No
locking = No
browseable = No
available = No

[profiles]
comment = Profile Share
path = /var/samba/profiles
read only = No
profile acls = Yes
browseable = No
available = No
force group = domain_users
force directory mode = 02775
force directory security mode = 2775

Friday, July 20 2012, 07:40 AM
Share this post:
Responses (1)
  • Accepted Answer

    Kevin B
    Kevin B
    Offline
    Tuesday, August 11 2015, 08:47 AM - #Permalink
    Resolved
    0 votes
    I can't help but I am having the same issue.

    Did you get it resolved? What did you do?

    Kevin
    The reply is currently minimized Show
Your Reply