bsd_auth(3) question

2012-11-10 Thread rustyBSD
Hi, is there a wayto useauth_userokay()without setgid to auth ? When testing this code: #include stdlib.h #include login_cap.h #include bsd_auth.h #include stdio.h #include stdlib.h int main() { printf(authentication ); char *user = strdup(me); char *pass = strdup(pass); if

Re: bsd_auth(3) question

2012-11-10 Thread William Ahern
On Sat, Nov 10, 2012 at 09:47:58PM +0100, rustyBSD wrote: Hi, is there a wayto useauth_userokay()without setgid to auth ? snip So it seems that I have to setgid to auth, and my binary must be setuid. Am I wrong ? Is there a way of authenticatingwithout being setuid ? There's also

Authen::bsd_auth - does it exist?

2012-02-16 Thread Jiri B
Hi, I found an interesting tool[1] and it depends on Authen::PAM. This obviously doesn't exist so I was searching for bsd_auth version, no success. But maybe it exists in a drawer of a person on this list ? :) [1] http://code.google.com/p/enterprise-log-search-and-archive/ jirib

bsd_auth again

2009-05-25 Thread Gregory Edigarov
Hello, Perhaps somebody can help me a bit... Here is very simple login_-test.c, just to check if everything works: #include stdio.h int main (int argc, char **argv) { char buf[1024]; int i; for (i=0;iargc;i++) puts(argv[i]); read (3,buf,sizeof(buf)); puts(buf); } And a very simple

Re: bsd_auth again

2009-05-25 Thread ttner dorian.buett...@gmx.de
Gregory Edigarov schrieb: As it doesn't seem to be calling login_-test, I think that is because I failed to properly describe what I need in login.conf what should be done? Tell your user to use that class in vipw?

Re: bsd_auth again

2009-05-25 Thread Otto Moerbeek
a bsd_auth login script, you better understand what you are doing. Otherwise you almost certainly will create a hole. This is no place for trial and error. -Otto

Re: bsd_auth again

2009-05-25 Thread Gregory Edigarov
writing a bsd_auth login script, you better understand what you are doing. Otherwise you almost certainly will create a hole. This is no place for trial and error. -Otto Otto, As I've written above it is just an experiment, in order to understand and write bigger script, that will do

Re: bsd_auth again

2009-05-25 Thread Gregory Edigarov
writing a bsd_auth login script, you better understand what you are doing. Otherwise you almost certainly will create a hole. This is no place for trial and error. Also Otto, the question I've asked was about how to correctly connect the would be script to the authentication mechanism

bsd_auth

2009-05-22 Thread Gregory Edigarov
Hello, Need just a small pointer to information on how to write an authentication program i.e. login_SOMEWHAT ? Because sources left much info outside. Is there a specification or something? Thanks. -- With best regards, Gregory Edigarov

Re: bsd_auth

2009-05-22 Thread Joachim Schipper
On Fri, May 22, 2009 at 11:25:17AM +0300, Gregory Edigarov wrote: Hello, Need just a small pointer to information on how to write an authentication program i.e. login_SOMEWHAT ? Because sources left much info outside. Is there a specification or something? Thanks. You'll want to read

Re: bsd_auth

2009-05-22 Thread Gregory Edigarov
Joachim Schipper wrote: On Fri, May 22, 2009 at 11:25:17AM +0300, Gregory Edigarov wrote: Hello, Need just a small pointer to information on how to write an authentication program i.e. login_SOMEWHAT ? Because sources left much info outside. Is there a specification or something? Thanks.

Re: bsd_auth

2009-05-22 Thread Antoine Jacoutot
On Fri, 22 May 2009, Gregory Edigarov wrote: Logically I can understand, that password will be provided as an input on file descriptor 3. But I cannot find that in manual... Why don't you start by reading bsd_auth(3) ? -- Antoine

Re: bsd_auth

2009-05-22 Thread Gilles Chehade
Gregory Edigarov wrote: Joachim Schipper wrote: On Fri, May 22, 2009 at 11:25:17AM +0300, Gregory Edigarov wrote: Hello, Need just a small pointer to information on how to write an authentication program i.e. login_SOMEWHAT ? Because sources left much info outside. Is there a

Re: bsd_auth

2009-05-22 Thread Gilles Chehade
Gilles Chehade wrote: Gregory Edigarov wrote: Joachim Schipper wrote: On Fri, May 22, 2009 at 11:25:17AM +0300, Gregory Edigarov wrote: Hello, Need just a small pointer to information on how to write an authentication program i.e. login_SOMEWHAT ? Because sources left much info outside.

xdm and bsd_auth

2007-04-07 Thread Antoine Jacoutot
Hi. I just upgraded to the latest i386 snap and realized that bsd_auth does not work anymore with xdm (using kerberos here). As I usually use this particular machine without X, it might have been this way for some time but I just ran into this today. Is it a known (mis)behaviour? -- Antoine