Re: Authentication woes...
Hmmm, After burying myself in Apples Documentation it appears that the question: Is foo the password for user baz? Can only be answered by digging into the Directory Services framework. It does not appear to be a task for the faint hearted... The NetInfo utility shows me that my authentication authority is : ;ShadowHash;HASHLIST:SALTED-SHA1 I think mucking around with the SMB login stuff caused the traditional unix style authentication to break. It does not look like fixing qpopper is in the near future ;( Jerry On Aug 27, 2005, at 8:42 PM, Jerry LeVan wrote: Hi, I just added a PC to my home network and was playing with trying to access directories on my Mac OS X system and suddenly my pop server quit working (qpopper). It had been working fine for at least a year! Not a single user could connect to the server via telnet ( I can connect ok but sending the password *always* fails). I hopped into perl as root and tried: macjerry:~ root# perl -de0 Loading DB routines from perl5db.pl version 1.28 Editor support available. Enter h or `h h' for help, or `man perldebug' for more help. main::(-e:1): 0 DB1 print getpwnam jerry jerry501200Jerry LeVan/Users/jerry/bin/bash0 note the *'s where the password should be...I suspect this is why qpopper is failing. I think mucking around with enabling Mac OSX to allow Windows Networking connections has mucked up how passwords are handled. I can still log on ok and the only thing that I have found so far that is broken is the pop3 server I am running. How can I programatically determine if user x has password z? A cursory exam of the qpopper code seems to indicate that the getpw family of functions seem to be used. I have spent the better part of the day trying to run down how to do user authentication on Mac OS X (10.4.2) but I have not made any headway Thanks for any pointers. Jerry
Re: Authentication woes...
For what it is worth the answer to the question below is located here: On 28/08/05, Jerry LeVan [EMAIL PROTECTED] wrote: I think that I somehow need to use the Directory Services to answer the question (programatically) : Is foo the password of user faz? http://developer.apple.com/samplecode/CryptNoMore/CryptNoMore.html -- x The program is about 600 lines of C code Jerry On Aug 28, 2005, at 9:44 AM, Jerry LeVan wrote: Hmmm, After burying myself in Apples Documentation it appears that the question: Is foo the password for user baz? Can only be answered by digging into the Directory Services framework. It does not appear to be a task for the faint hearted... The NetInfo utility shows me that my authentication authority is : ;ShadowHash;HASHLIST:SALTED-SHA1 I think mucking around with the SMB login stuff caused the traditional unix style authentication to break. It does not look like fixing qpopper is in the near future ;( Jerry On Aug 27, 2005, at 8:42 PM, Jerry LeVan wrote: Hi, I just added a PC to my home network and was playing with trying to access directories on my Mac OS X system and suddenly my pop server quit working (qpopper). It had been working fine for at least a year! Not a single user could connect to the server via telnet ( I can connect ok but sending the password *always* fails). I hopped into perl as root and tried: macjerry:~ root# perl -de0 Loading DB routines from perl5db.pl version 1.28 Editor support available. Enter h or `h h' for help, or `man perldebug' for more help. main::(-e:1): 0 DB1 print getpwnam jerry jerry501200Jerry LeVan/Users/jerry/bin/bash0 note the *'s where the password should be...I suspect this is why qpopper is failing. I think mucking around with enabling Mac OSX to allow Windows Networking connections has mucked up how passwords are handled. I can still log on ok and the only thing that I have found so far that is broken is the pop3 server I am running. How can I programatically determine if user x has password z? A cursory exam of the qpopper code seems to indicate that the getpw family of functions seem to be used. I have spent the better part of the day trying to run down how to do user authentication on Mac OS X (10.4.2) but I have not made any headway Thanks for any pointers. Jerry
Re: Authentication woes...
The program is about 600 lines of C code That's not all that difficult. I kind of wish you hadn't done that, but since I didn't warn you off earlier, I guess I shouldn't complain. The usual way to attack this sort of problem is to update the module that has fallen behind and reset all the passwords by hand. Good OS design intentionally puts roadblocks in the way of direct password recovery.
Authentication woes...
Hi, I just added a PC to my home network and was playing with trying to access directories on my Mac OS X system and suddenly my pop server quit working (qpopper). It had been working fine for at least a year! Not a single user could connect to the server via telnet ( I can connect ok but sending the password *always* fails). I hopped into perl as root and tried: macjerry:~ root# perl -de0 Loading DB routines from perl5db.pl version 1.28 Editor support available. Enter h or `h h' for help, or `man perldebug' for more help. main::(-e:1): 0 DB1 print getpwnam jerry jerry501200Jerry LeVan/Users/jerry/bin/bash0 note the *'s where the password should be...I suspect this is why qpopper is failing. I think mucking around with enabling Mac OSX to allow Windows Networking connections has mucked up how passwords are handled. I can still log on ok and the only thing that I have found so far that is broken is the pop3 server I am running. How can I programatically determine if user x has password z? A cursory exam of the qpopper code seems to indicate that the getpw family of functions seem to be used. I have spent the better part of the day trying to run down how to do user authentication on Mac OS X (10.4.2) but I have not made any headway Thanks for any pointers. Jerry