Russell P. Sutherland | 1 Apr 2004 16:00
Picon
Favicon
Gravatar

checkpassword and Mac OS X

The most recent version of Mac OS X (10.3, Panther)  has a feature that
disallows the standard getpwnam function call to return the encrypted
version of the persons password.

I've got a clumsy work around for this problem that uses
the Mac OS X specific authentication libraries.

I tried using the checkpassword-pam tool hoping
that pam would hide all this abstraction with out
success.

Has any one else experienced this non-portability
feature with Mac OS X?

--

-- 
Quist Consulting		Email: russ <at> quist.ca
219 Donlea Drive 		Voice: +1.416.696.7600
Toronto ON  M4G 2N1		Cell:  +1.416.803.0080
CANADA				WWW:   http://www.quist.ca

Chad B | 2 Apr 2004 09:44
Picon
Favicon

uninstall/reinstall checkpassword troubles "errno"

Hello,

I have been having trbls with checkpassword, I actually noticed I may not 
even have it installed correctly, as I went to /bin and there was no 
"checkpassword" file, only directory with source.  there is a "cmd5checkpw*" 
file, will this cause conflict, my qmail pop3d run script does not reference 
it, it looks for /bin/checkpassword.

   Anyway, I want to reinstall checkpassword, however, when I make I get the 
following error:

[root <at> localhost checkpassword-0.90]# make
./load checkpassword prot.o unix.a byte.a  `cat \
shadow.lib` `cat crypt.lib` `cat s.lib`
checkpassword.o(.text+0x6e): In function `main':
: undefined reference to `errno'
checkpassword.o(.text+0xf9): In function `main':
: undefined reference to `errno'
checkpassword.o(.text+0x247): In function `main':
: undefined reference to `errno'
unix.a(pathexec_run.o)(.text+0xf6): In function `pathexec_run':
: undefined reference to `errno'
unix.a(pathexec_run.o)(.text+0x167): In function `pathexec_run':
: undefined reference to `errno'
unix.a(alloc.o)(.text+0x4c): more undefined references to `errno' follow
collect2: ld returned 1 exit status
make: *** [checkpassword] Error 1

Any ideas on how to properly uninstall/reinstall.  I think this bad original 
checkpassword setup may be the cause of my qmail "-ERR unable to write pipe" 
(Continue reading)

Andrew Richards | 2 Apr 2004 10:32
Picon
Favicon

Re: uninstall/reinstall checkpassword troubles "errno"

On Friday 02 April 2004 08:44, you wrote:
> ...
> : undefined reference to `errno'
> ...
> Any ideas on how to properly uninstall/reinstall.  I think this bad
> original checkpassword setup may be the cause of my qmail "-ERR unable to
> write pipe" problems.

Nope, the 'unable to write pipe' doesn't relate to a compilation issue. You do 
have repeated 'errno' messages however: This is a common question on this 
mailing list (but the answer is easily found on Google / in the archive 
etc.).

Here are some sources of information for common queries:

 - errno patches: http://www.qmail.org/moni.csi.hu/pub/glibc-2.3.1/
 - Google (in this case, search on "checkpassword errno")
 - The archive at http://news.gmane.org/group/gmane.comp.djb.checkpassword

cheers,

Andrew.

Chad B | 3 Apr 2004 06:24
Picon
Favicon

Re: uninstall/reinstall checkpassword troubles "errno"

Hello, thanks for the help, but I patched (see entire patch log below) and I 
get the same errno errors:

[root <at> localhost downloads]# rpmbuild --rebuild 
checkpassword-0.90-2patch.src.rpm
Installing checkpassword-0.90-2patch.src.rpm
warning: user mw does not exist - using root
warning: group mw does not exist - using root
warning: user mw does not exist - using root
warning: group mw does not exist - using root
warning: user mw does not exist - using root
warning: group mw does not exist - using root
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.9628
+ umask 022
+ cd /usr/src/RPM/BUILD
+ cd /usr/src/RPM/BUILD
+ rm -rf checkpassword-0.90
+ /usr/bin/gzip -dc /usr/src/RPM/SOURCES/checkpassword-0.90.tar.gz
+ tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd checkpassword-0.90
+ echo 'Patch #0 (checkpassword-0.90.errno.patch):'
Patch #0 (checkpassword-0.90.errno.patch):
+ patch -p1 -s
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.9628
+ umask 022
+ cd /usr/src/RPM/BUILD
+ cd checkpassword-0.90
(Continue reading)

Paul Jarc | 3 Apr 2004 09:33
Picon

Re: uninstall/reinstall checkpassword troubles "errno"

"Chad B" <chbojorq <at> hotmail.com> wrote:
> Hello, thanks for the help, but I patched (see entire patch log below)
> and I get the same errno errors:

I see no error message here.

paul

Chad B | 3 Apr 2004 10:05
Picon
Favicon

Re: uninstall/reinstall checkpassword troubles "errno"

I get the error message when I try to make checkpassword-0.90 after 
patching:

[root <at> localhost checkpassword-0.90]# make
./load checkpassword prot.o unix.a byte.a  `cat \
shadow.lib` `cat crypt.lib` `cat s.lib`
checkpassword.o(.text+0x6e): In function `main':
: undefined reference to `errno'
checkpassword.o(.text+0xf9): In function `main':
: undefined reference to `errno'
checkpassword.o(.text+0x247): In function `main':
: undefined reference to `errno'
unix.a(pathexec_run.o)(.text+0xf6): In function `pathexec_run':
: undefined reference to `errno'
unix.a(pathexec_run.o)(.text+0x167): In function `pathexec_run':
: undefined reference to `errno'
unix.a(alloc.o)(.text+0x4c): more undefined references to `errno' follow
collect2: ld returned 1 exit status
make: *** [checkpassword] Error 1

Thanks!

>From: prj <at> po.cwru.edu (Paul Jarc)
>To: "Chad B" <chbojorq <at> hotmail.com>
>CC: ar-djblists <at> nwdb.co.uk, password <at> list.cr.yp.to
>Subject: Re: uninstall/reinstall checkpassword troubles "errno"
>Date: Sat, 03 Apr 2004 02:33:39 -0500
>
>"Chad B" <chbojorq <at> hotmail.com> wrote:
> > Hello, thanks for the help, but I patched (see entire patch log below)
(Continue reading)

Dave Kitabjian | 12 Apr 2004 23:13

RE: checkpassword and Mac OS X

Searching for "getpwent" at apple.com revealed this:

	http://docs.info.apple.com/article.html?artnum=30770

A clip says:

	"Lookupd is a daemon that simplifies the tasks of the Unix-style
library routines that need system and network administration
information. ...

Lookupd was created to avoid rewriting all the libc routines any time a
new information service is added. If, for example, we wanted client
processes to get network administration information from a relational
database, we could modify lookupd so it referenced the information in
the database. This would be easier than modifying all the appropriate
libc routines to give them relational database access.

In addition to providing a centralized data access service, lookupd also
caches some information. This caching improves system responsiveness and
decreases network traffic."

If this is part of its underlying OS Darwin, it should get contributed
back to the FreeBSD community (right?). In that case, FreeBSD might move
towards Lookupd down the road...

Dave

> -----Original Message-----
> From: Russell P. Sutherland [mailto:russ <at> quist.ca]
> Sent: Thursday, April 01, 2004 9:00 AM
(Continue reading)

Will Saxon | 12 Apr 2004 23:24
Picon
Favicon

RE: checkpassword and Mac OS X

> -----Original Message-----
> From: Dave Kitabjian [mailto:dave <at> netcarrier.com]
> Sent: Monday, April 12, 2004 5:13 PM
> To: Russell P. Sutherland; password <at> list.cr.yp.to
> Subject: RE: checkpassword and Mac OS X
> 
> 
> If this is part of its underlying OS Darwin, it should get contributed
> back to the FreeBSD community (right?). In that case, FreeBSD 
> might move
> towards Lookupd down the road...
> 
> Dave

I sure hope not. The new nsswitch stuff copied from NetBSD works 
quite well already.

-Will

Steven Schwartz | 15 Apr 2004 18:57
Favicon

Apologies for a simple question

...but I haven't been able to find an FAQ or the like to give an answer.

Building checkpassword 0.90 on a RH 7.3 system, it compiles cleanly, 
installs cleanly, and then, when trying to verify it using telnet 0 110 
and a virtual address, I get:

/usr/local/bin/checkvpw: error while loading shared libraries: 
libm.so.6: failed to map segment from shared object: Cannot allocate 
memory
-ERR authorization failed

I suspect somehow this is a common problem; I was able to find one 
other reference to it, but it didn't have a solution.  Help?

Steven Schwartz
Operations Engineer
macys.com

Andrew Richards | 18 Apr 2004 19:09
Picon
Favicon

Re: Apologies for a simple question

On Thursday 15 April 2004 17:57, Steven Schwartz wrote:
> Building checkpassword 0.90 on a RH 7.3 system, it compiles cleanly,
> installs cleanly, and then, when trying to verify it using telnet 0 110
> and a virtual address, I get:
>
> /usr/local/bin/checkvpw: error while loading shared libraries:

checkvpw is part of vmailmgr, so the error you are getting relates to that 
package, not standard checkpassword.

There is a mailing list for vmailmgr, see www.vmailmgr.org.

cheers,

Andrew.


Gmane