Бодрого времени суток!
На домене самба потеряла (внезапно) связь с ldap. LDAP и samba лежат на одном сервере.
На текущий момент getent passwd выдаёт только локальные учётки домена.
Почта работает ... другая всякая авторизация завязнанная на LDAP тоже.
На сервере:
pdbedit -L gubankov.vs
Attempting to find a passdb backend to match ldapsam:ldap://127.0.0.1/ (ldapsam)
No builtin backend found, trying to load plugin
Module 'ldapsam' loaded
Attempting to register passdb backend ldapsam
Successfully added passdb backend 'ldapsam'
Attempting to register passdb backend NDS_ldapsam
Successfully added passdb backend 'NDS_ldapsam'
Attempting to register passdb backend IPA_ldapsam
Successfully added passdb backend 'IPA_ldapsam'
Found pdb backend ldapsam
smbldap_search_domain_info: Searching for:[(&(objectClass=sambaDomain)(sambaDomainName=TITAN.ZN))]
StartTLS issued: using a TLS connection
smbldap_open_connection: connection opened
ldap_connect_system: successful connection to the LDAP server
pdb backend ldapsam:ldap://127.0.0.1/ has a valid init
init_sam_from_ldap: Entry found for user: gubankov.vs
Opening cache file at /var/cache/samba/login_cache.tdb
gubankov.vs:4294967295:Губанков Виктор Сергеевич
pdbedit -i ldapsam
Attempting to find a passdb backend to match ldapsam:ldap://127.0.0.1/ (ldapsam)
No builtin backend found, trying to load plugin
Module 'ldapsam' loaded
Attempting to register passdb backend ldapsam
Successfully added passdb backend 'ldapsam'
Attempting to register passdb backend NDS_ldapsam
Successfully added passdb backend 'NDS_ldapsam'
Attempting to register passdb backend IPA_ldapsam
Successfully added passdb backend 'IPA_ldapsam'
Found pdb backend ldapsam
smbldap_search_domain_info: Searching for:[(&(objectClass=sambaDomain)(sambaDomainName=TITAN.ZN))]
StartTLS issued: using a TLS connection
smbldap_open_connection: connection opened
ldap_connect_system: successful connection to the LDAP server
pdb backend ldapsam:ldap://127.0.0.1/ has a valid init
Attempting to find a passdb backend to match ldapsam (ldapsam)
Found pdb backend ldapsam
smbldap_search_domain_info: Searching for:[(&(objectClass=sambaDomain)(sambaDomainName=TITAN.ZN))]
StartTLS issued: using a TLS connection
smbldap_open_connection: connection opened
ldap_connect_system: successful connection to the LDAP server
pdb backend ldapsam has a valid init
Attempting to find a passdb backend to match ldapsam:ldap://127.0.0.1/ (ldapsam)
Found pdb backend ldapsam
smbldap_search_domain_info: Searching for:[(&(objectClass=sambaDomain)(sambaDomainName=TITAN.ZN))]
StartTLS issued: using a TLS connection
smbldap_open_connection: connection opened
ldap_connect_system: successful connection to the LDAP server
pdb backend ldapsam:ldap://127.0.0.1/ has a valid init
export_database: username="(NULL)"
smbldap_search_paged: base => [dc=titan,dc=zn], filter => [(&(uid=*)(objectclass=sambaSamAccount))],scope => [2], pagesize => [1024]
smbldap_search_paged: search was successful
init_sam_from_ldap: Entry found for user: admin
Opening cache file at /var/cache/samba/login_cache.tdb
init_sam_from_ldap: Entry found for user: admin
ldapsam_update_sam_account: user admin to be modified has dn: uid=admin,ou=People,dc=titan,dc=zn
init_ldap_from_sam: Setting entry for user: admin
ldapsam_update_sam_account: mods is empty: nothing to update for user: admin
Importing account for admin...ok
init_sam_from_ldap: Entry found for user: vxp$
init_sam_from_ldap: Entry found for user: vxp$
ldapsam_update_sam_account: user vxp$ to be modified has dn: uid=vxp$,ou=Computers,dc=titan,dc=zn
init_ldap_from_sam: Setting entry for user: vxp$
ldapsam_update_sam_account: mods is empty: nothing to update for user: vxp$
Importing account for vxp$...ok
init_sam_from_ldap: Entry found for user: gubankov.vs
init_sam_from_ldap: Entry found for user: gubankov.vs
ldapsam_update_sam_account: user gubankov.vs to be modified has dn: uid=gubankov.vs,ou=People,dc=titan,dc=zn
init_ldap_from_sam: Setting entry for user: gubankov.vs
ldapsam_update_sam_account: mods is empty: nothing to update for user: gubankov.vs
Importing account for gubankov.vs...ok
pdbedit -L показывает имена пользователей домена ...