Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: Add compatibility for CRLF-formatted users.conf files 1.Previously, when processing users.conf files in CRLF format, the Bash script treated the '\r' at the end of lines as part of the password. This caused incorrect passwords and login failures. 2.This issue has now been fixed by removing all '\r' characters, enhancing compatibility. 3.It is still recommended to use LF format for both smb.conf and users.conf files. * fix: Fixed the bug where the user would be re-added after a restart. 1.Use pdb_output to first capture the result of pdbedit -s "$cfg" -L, and then check if the user exists in the output. Without this step, the first user loaded may be incorrectly identified as not existing, causing it to be re-added and triggering the log output: "User $username has been added to Samba and password set."
- Loading branch information