Yubico Forum

...visit our web-store at store.yubico.com
It is currently Tue Jan 30, 2018 3:13 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Thu Nov 04, 2010 7:55 pm 
Offline

Joined: Thu Nov 04, 2010 7:49 pm
Posts: 1
I am seeing some output that I would like to suppress. I am running Debian Lenny 5.06 and have configured /etc/pam.d/login to use yubikey auth by adding the line:

auth required pam_yubico.so id=16

This works fine except it prints the following during login.


yubi-server login: root
Yubikey for `root':
[pam_yubico.c:check_user_token(117)] Authorization line: root:cccccccedtej:cccccccfgfve
[pam_yubico.c:check_user_token(121)] Matched user: root
[pam_yubico.c:check_user_token(125)] Authorization token: cccccccedtej
[pam_yubico.c:check_user_token(128)] Match user/token as root/cccccccedtej
Password:

Is there a way to suppress this output?

Thanks,

Tom


Top
 Profile  
Reply with quote  

Share On:

Share on Facebook FacebookShare on Twitter TwitterShare on Tumblr TumblrShare on Google+ Google+

PostPosted: Thu Apr 14, 2011 1:20 pm 
Offline

Joined: Wed Apr 13, 2011 2:24 pm
Posts: 4
Hi,

I confirm the issue. A few statements in check_user_token() are preceded with the D macro. This macro is defined in util.h if DEBUG_PAM is defined, which is basically always, unless you remove it from Makefile's DEFS.

Maybe we could move line 630
Code:
#define DBG(x) if (cfg.debug) { D(x); }

to the top, and replace calls to D with calls to DBG ?

Cheers,

Le Coyote


Top
 Profile  
Reply with quote  
PostPosted: Thu Apr 14, 2011 2:25 pm 
Thanks for reporting. It is obviously not right to display that output when 'debug' is not requested, no.

I can look into this if you add an issue to the issue tracker for yubico-pam http://code.google.com/p/yubico-pam/issues/list, but it will happen much sooner if you also supply me with a pull request on Github ;). https://github.com/Yubico/yubico-pam

/Fredrik


Top
  
Reply with quote  
PostPosted: Fri Apr 15, 2011 1:43 pm 
Offline

Joined: Wed Apr 13, 2011 2:24 pm
Posts: 4
Hi there,

It's done, you should have a message on github.
Cheers,
Le Coyote


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group