Passdbbackend is the meaning of the user's background. There are currently three backend types: smbpasswd, tdbsam, and ldapsam. Sam should be short for securityaccountmanager (secure account management. 1. smbpasswd: This method uses the smb tool smbpasswd to give the system user...
Passdb backend is the meaning of the user background. There are currently three backend types: smbpasswd, tdbsam, and ldapsam. Sam should be short for security account manager.
1. smbpasswd: This method uses the smb tool smbpasswd to give the system user (real
Users or virtual users) set a Samba password, which is used by the client to access Samba resources. The smbpasswd file is in the/etc/samba directory by default, but you sometimes need to create this file manually.
2. tdbsam: This method uses a database file to create a user database. The database file is called passdb. tdb, which is in the/etc/samba directory by default. Passdb. tdb user databases can use smbpasswd-a to create Samba users, but the Samba users to be created must first be system users. We can also use the pdbedit command to create a Samba account. The pdbedit command has many parameters. we will list several main parameters.
Pdbedit-a username: Create a Samba account.
Pdbedit-x username: delete the Samba account.
Pdbedit-L: list Samba users and read the passdb. tdb database files.
Pdbedit-Lv: list detailed information about the Samba user list.
Pdbedit-c "[D]"-u username: suspend the account of this Samba user.
Pdbedit-c "[]"-u username: restore the Samba user's account.
3. ldapsam: The LDAP-based account management method is used to authenticate users. First, create the LDAP service, and then set "passdb backend = ldapsam: ldap: // LDAP Server"