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

smbrkb5pwd is making bogus samba hashes. #1

Open
jeffbearer opened this issue Jan 31, 2012 · 2 comments
Open

smbrkb5pwd is making bogus samba hashes. #1

jeffbearer opened this issue Jan 31, 2012 · 2 comments

Comments

@jeffbearer
Copy link

I'm having a strange problem where i'm getting bogus hashes in my sambaNtPassword and sambaLmPassword fields. I'm not able to authenticate with those hashes. However if i put in a hash created by smbencrypt authentication against LDAP works as expected.

This link describes it exactly, I have an email into the original poster to see if he came up with, and recalls his solution from 2009.

http://www.openldap.org/lists/openldap-technical/200910/msg00003.html

@jeffbearer
Copy link
Author

Eureeka. The makefile was not using openssl and the libcrypto stuff was making the bogus hash. I'm going to update the wiki page about building for centos and the patch file there to make it build with openssl.

@frat3rius
Copy link

Yup the same problem in here with latest Debian, maybe it'd be nice to fix the Makefile. What I did is changed this line in Makefile:

SSL_LIB=-lcrypto -lssl
OPT=-g -DHAVE_OPENSSL -O2

Now Samba passwords are in sync correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants