Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature]: Import passwords as NTLM hashes #43

Open
aovestdipaperino opened this issue May 27, 2020 · 1 comment
Open

[Feature]: Import passwords as NTLM hashes #43

aovestdipaperino opened this issue May 27, 2020 · 1 comment

Comments

@aovestdipaperino
Copy link

I've been using dperson/samba which has a function to import smb passwd database. Since I think setting the Unix password to be the same shouldn't be necessary, I was wondering if it's possible to add the ability to import the users from the smb passwd export file.
Relevant code:

    while read name id; do
        grep -q "^$name:" /etc/passwd || adduser -D -H -u "$id" "$name"
    done < <(cut -d: -f1,2 $file | sed 's/:/ /')
    pdbedit -i smbpasswd:$file

This will make moving passwords around a tiny bit safer. I can probably help if there is interest

@mbentley
Copy link
Owner

I don’t have a need for the feature but if you or others would find it useful, it could be added.

@mbentley mbentley changed the title Import passwords as NTLM hashes [Feature]: Import passwords as NTLM hashes Dec 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants