Hello, I'm developing a program that sets the SAMBA passwords in a LDAP-directory. I'm now wondering if there are some classes in MFC (Or any other c++ class) that can make these hashes. I've been checking out the mkntpwd, and I want a similar class that does the same thing: $ mkntpwd password E52CAC67419A9A224A3B108F3FA6CB6D:8846F7EAEE8FB117AD06BDD830B7586C (Lanmanager:NT) .. Like (something simple like this) CLanmangerPassword a("cleartextpassword"); CString sLanmgrpwd = a.GetHash();
Franz Granlund 0
Posts
-
Lanmanager and NT Password -
ListCtrl - Put a imagem background ??I haven't had any experience of that myself. But a quick google on 'msdn SetBkColor() transparent' gave many results.. Try checking them out.
-
ListCtrl - Put a imagem background ??Check out http://www.codeguru.com/listview/background_image.shtml.. Good luck! :)
-
ListCtrl - Put a imagem background ??In your CApplicationApp::InitInstance() put if (!AfxOleInit()) return FALSE;
-
Open a file with the associated program.How do I "programatically" open a file (say c:\temp\a.jpg) with the associated program in windows 2000? I'm using VS.NET C++. MFC Application.
-
Displaying JPEG/BMP/GIF images in a dialog using VS.NET C++Hi, I'm using C++ in VS.NET. I've created an dialogbased MFC application. How can I display a jpeg-picture in a dialog (MFC)? I wan't to load the picture from a file stored on my HD or/and from a char* pointing at the picture data. Can I use the Picture Control or something easy like that?
-
Unix crypt() under windows.First, thank you very much for trying to help me out! Well, I wan't a crypt() functionality of a linux system that uses PAM and MD5 password enabled. (The linux dist is Redhat 7.3) A short code written and compiled under linux: #include int main() { char p[100]; // Allocate this dynamically later.. char s[100]; char *e; strcpy(p, "fan"); strcpy(s, "xe"); e = crypt(p, s); printf("Password: %s\nEncrypted: %s\n",p, e); return 0; } The output: $ ./m Password: fan Encrypted: xeY7nbSvmz7jU Hope you get some information from this code.. Again, thank you for trying to help.
-
Unix crypt() under windows.Thank you for your answer, but that is way to complex for me.. =) Do you know of any other library? Or could you help me get started? It's such a small application, that I don't wan't to spend to much time figuring the crypto-world out. :) (Yes, I wan't to learn someday, but not today. :)) :laugh:
-
Unix crypt() under windows.Hello gurus. I'm currently programming am application for windows 2000 (in Visual Studio C++ 6.0). It's a program that creates LDIF files that will be used to update a LDAP entries. (openLDAP) I've run into one problem tough. Is there a function/library in VSC++ that is similar to the unix crypt()? (using md5 or the ldap {crypt}) Yes, I'm a beginner, but I'm learning. :laugh: