QNX4 User Athentication (newbie)

I’m a QNX Newbie who is trying to port an secure ftpd to qnx. The daemon
need to validate the userid and make sure the password matches the shadow
file. Everything works great except for user authentication, getspnam is in
shadow.h but won’t link and I can’t find it in /usr/lib with a grep. Am I
doing something wrong? Is there an easier way to do this? Are there any code
examples availble in contributed software or the documentation that shows
user authentication on QNX 4.25?

Roger

I can’t really give you a definitive answer…

Somewhere around 4.25D there was a set of security updates, which updated
all the crypt & passwd utilities and libraries. If you have installed the
updates or version 4.25E off the cd (May 2001 Product Suite), the security
functions should be in the unix*.lib libraries in /usr/lib. Unfortunately,
I don’t think getspnam() ever was in the Watcom libraries. However, before
the security upgrade, there was a downloadable crypt package (with source)
on QUICS (somewhere :wink:. You could try to find it on the QNX web site and
use the shadow.c module. It has getspnam() in it.

Hope this helps.

Rob

“Roger Swift” <roger.o.swift@exxonmobil.com> wrote in message
news:a5lhg0$28t$1@inn.qnx.com

I’m a QNX Newbie who is trying to port an secure ftpd to qnx. The daemon
need to validate the userid and make sure the password matches the shadow
file. Everything works great except for user authentication, getspnam is
in
shadow.h but won’t link and I can’t find it in /usr/lib with a grep. Am I
doing something wrong? Is there an easier way to do this? Are there any
code
examples availble in contributed software or the documentation that shows
user authentication on QNX 4.25?

Roger


\

Rob,
Thanks!!! The crypt-qnx lib was just what I needed.

Roger

“Rob” <rob@spamyouself.com> wrote in message
news:a5lli8$53k$1@inn.qnx.com

I can’t really give you a definitive answer…

Somewhere around 4.25D there was a set of security updates, which updated
all the crypt & passwd utilities and libraries. If you have installed the
updates or version 4.25E off the cd (May 2001 Product Suite), the security
functions should be in the unix*.lib libraries in /usr/lib.
Unfortunately,
I don’t think getspnam() ever was in the Watcom libraries. However,
before
the security upgrade, there was a downloadable crypt package (with source)
on QUICS (somewhere > :wink:> . You could try to find it on the QNX web site and
use the shadow.c module. It has getspnam() in it.

Hope this helps.

Rob

“Roger Swift” <> roger.o.swift@exxonmobil.com> > wrote in message
news:a5lhg0$28t$> 1@inn.qnx.com> …
I’m a QNX Newbie who is trying to port an secure ftpd to qnx. The daemon
need to validate the userid and make sure the password matches the
shadow
file. Everything works great except for user authentication, getspnam is
in
shadow.h but won’t link and I can’t find it in /usr/lib with a grep. Am
I
doing something wrong? Is there an easier way to do this? Are there any
code
examples availble in contributed software or the documentation that
shows
user authentication on QNX 4.25?

Roger




\