Fabian Blanco wrote:
Hi Tim,
Implement the two configurations
1. Integrated LDAP for User and Group Management
and
2. Windows Networking with PDC and BDC Support
1. Integrated LDAP for User and Group Management
I did the following changes to the configuration script (/etc/openldap/slapd.conf)
Technically (www.openldap.org), "syncrepl" is the configuration directive, and everything else is that directive's parameter. So you could write:
"syncrepl rid=123 provider=ldap://...", you add the "\" character to concatenate the script.
his is my configuration which works :
syncrepl rid=123 \
provider=ldaps://mypdc.example.net:636 \
bindmethod=simple \
searchbase="dc=example,dc=net" \
binddn="cn=manager,cn=internal,dc=example,dc=net" \
credentials=123 \
filter="(objectclass=*)" \
schemachecking=on \
type=refreshAndPersist \
syncdata=accesslog \
retry="15 +" \
logbase="cn=accesslog"
# Refer updates to the master
updateref ldaps://mypdc.example.net
Finally achieve that replicated both users and groups automatically.
When the income to FlexShare Webconfig shows Invalid legend with an exclamation point.
or attach file
I can create a share, for example Backup, a group owner (generated at the PDC) with users assigned, active but when I accessed via the bowser from a position of a user who belongs to the group (logged to the domain of course ) gives the error that no permissions to access the resources on your computer.
Any idea what is wrong?
Now that you have a replicated LDAP directory, the simplest approach is make the second machine a BDC. You need to mirror your smb.conf info from the PDC, set "domain master = No" on the BDC. Edit the conf files so that "passdb backend = ldapsam:ldap://pdc_name:389"
Next, remove the /var/lib/samba/*tdb files, remove the secrets.tdb file. Now recreated the secrets.tdb as folllows:
a) On the PDC:
net getdomainsid
b) On the BDC:
net setdomainsid S-1-5-21-xxxxxxxxx-xxxxxxx-xxxxxxx
net setlocalsid S-1-5-21-xxxxxxxxx-xxxxxxx-xxxxxxx
c) On the PDC:
net rpc join -Uwinadmin%"winadmin_password"
d) On the BDC:
smbpasswd -w "the_secret_LDAP_password"
net rpc join -Uwinadmin%"winadmin_password"
Check that the following work:
getent passwd
getent group
- both should give the same output on both machines.
wbinfo -t
- both machines should have a valid domain trust account
wbinfo -u
wbinfo -g
- both systems should provide identical output
pdbedit -Lw
- both systems should provide identical output
e) Now restart Samba (nmbd, winbind, smbd).
f) Validate that group mappings are identical across both systems:
net groupmap list
- if not, make them the same (hint: you could copy the group_mapping.tdb file from the PDC to the BDC)
g) Valdiate that user rights and privileges are identical on both systems:
net rpc rights list accounts -Uwinadmin%"winadmin_password"
- if not, make them the same (search the Samba HOWTO if necessary)
At this point the UIDs and GIDs will be identical across both systems and normal filesystem permissions will apply in a consistent manner.
- John T.