note 62058 added to function.posix-getpwnam
| From: | bauatkg-fdsdotde at osu1 dot php dot net | Date: | Sat, 18 Feb 2006 17:22:45 +0000 |
| Subject: | note 62058 added to function.posix-getpwnam | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-103971@lists.php.net to get a copy of this message | ||
Hello, I've tried another, more easier way to check passwords than checking it to a
pop3-server. If you are running a samba-server or a Windows PDC, so you can try to connect with the
username/password you want to check to the netlogon of this server:
if (exec('echo "exit"|smbclient //server/netlogon -U'.$user.'
'.$pass)=="") { ... }
If the username/password doesn't match, then the exec-command under LINUX returns an error.
Good luck
Baumgärtner
----
Server IP: 217.13.201.10
Probable Submitter: 84.158.199.176
----
Manual Page -- http://www.php.net/manual/en/function.posix-getpwnam.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+62058
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+62058&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+62058&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+62058&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+62058&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+62058&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+62058&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+62058&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+62058&report=yes
Search -- http://master.php.net/manage/user-notes.php