OPENPAM_LOG(3) BSD Library Functions Manual OPENPAM_LOG(3)NAME
openpam_log -- log a message through syslog
LIBRARY
Pluggable Authentication Module Library (libpam, -lpam)
SYNOPSIS
#include <sys/types.h>
#include <security/pam_appl.h>
#include <security/openpam.h>
void
openpam_log(int level, const char *fmt, ...);
DESCRIPTION
The openpam_log function logs messages using syslog(3). It is primarily intended for internal use by the library and modules.
The level argument indicates the importance of the message. The following levels are defined:
PAM_LOG_DEBUG Debugging messages. These messages are logged with a syslog(3) priority of LOG_DEBUG.
PAM_LOG_VERBOSE Information about the progress of the authentication process, or other non-essential messages. These messages are logged
with a syslog(3) priority of LOG_INFO.
PAM_LOG_NOTICE Messages relating to non-fatal errors. These messages are logged with a syslog(3) priority of LOG_NOTICE.
PAM_LOG_ERROR Messages relating to serious errors. These messages are logged with a syslog(3) priority of LOG_ERR.
The remaining arguments are a printf(3) format string and the corresponding arguments.
SEE ALSO pam(3), printf(3), syslog(3)STANDARDS
The openpam_log function is an OpenPAM extension.
AUTHORS
The openpam_log function and this manual page were developed for the FreeBSD Project by ThinkSec AS and Network Associates Laboratories, the
Security Research Division of Network Associates, Inc. under DARPA/SPAWAR contract N66001-01-C-8035 (``CBOSS''), as part of the DARPA CHATS
research program.
BSD December 21, 2007 BSD
Check Out this Related Man Page
PAM_CHAUTHTOK(3) BSD Library Functions Manual PAM_CHAUTHTOK(3)NAME
pam_chauthtok -- perform password related functions within the PAM framework
LIBRARY
Pluggable Authentication Module Library (libpam, -lpam)
SYNOPSIS
#include <sys/types.h>
#include <security/pam_appl.h>
int
pam_chauthtok(pam_handle_t *pamh, int flags);
DESCRIPTION
The pam_chauthtok function attempts to change the authentication token for the user associated with the pam context specified by the pamh
argument.
The flags argument is the binary or of zero or more of the following values:
PAM_SILENT Do not emit any messages.
PAM_CHANGE_EXPIRED_AUTHTOK
Change only those authentication tokens that have expired.
If any other bits are set, pam_chauthtok will return PAM_SYMBOL_ERR.
RETURN VALUES
The pam_chauthtok function returns one of the following values:
[PAM_ABORT] General failure.
[PAM_AUTHTOK_DISABLE_AGING]
Authentication token aging disabled.
[PAM_AUTHTOK_ERR] Authentication token failure.
[PAM_AUTHTOK_LOCK_BUSY]
Authentication token lock busy.
[PAM_AUTHTOK_RECOVERY_ERR]
Failed to recover old authentication token.
[PAM_BUF_ERR] Memory buffer error.
[PAM_CONV_ERR] Conversation failure.
[PAM_PERM_DENIED] Permission denied.
[PAM_SERVICE_ERR] Error in service module.
[PAM_SYMBOL_ERR] Invalid symbol.
[PAM_SYSTEM_ERR] System error.
[PAM_TRY_AGAIN] Try again.
SEE ALSO pam(3), pam_strerror(3)STANDARDS
X/Open Single Sign-On Service (XSSO) - Pluggable Authentication Modules, June 1997.
AUTHORS
The pam_chauthtok function and this manual page were developed for the FreeBSD Project by ThinkSec AS and Network Associates Laboratories,
the Security Research Division of Network Associates, Inc. under DARPA/SPAWAR contract N66001-01-C-8035 (``CBOSS''), as part of the DARPA
CHATS research program.
BSD December 21, 2007 BSD
anyone know of a FREE logfile checker that they would recommend?
looking to scan thru syslog, sulog, messages, etc... looking for security type related entries., thanks,
brian (1 Reply)
I am calling "void syslog(int, const char *, ...);" from my c++ application (definition taken from man page for syslog.h". Is there any way to detect that the syslog is not working, so that I can re-direct logging information to stderr?
Thanks in advance.
David (2 Replies)
Guys,
I have a problem whereby my /var/adm/messages and /var/log/syslog are not being generated.
A few months ago this server ran out of inodes and from there it started. I was able to bring down the inode count, but the generation of the above-mentioned files still did not happen as normal.... (1 Reply)
Team,
I am very new to Unix and would like to know how to read messages in syslog and also if it possible to export the syslog messages to a windows server event log? Can it be possible to use scripting to achieve this?
Thanks,
Sarav (1 Reply)
Hello Guys...
I am bit new to shell scripting and was looking for help !!
I have got syslog data on a linux server recording log messages from a device.
I need to seperate the data from log to file so that I can push it excell and get a report from that.
Log is in the format below
"... (2 Replies)
Hi
Is there any setting in the syslog.conf that I can define a string to disable certain type of message that is generated in the message file
for example I want to stop these type of messages getting generated.
UnablAug 18 07:06:30 local1:warn|warning KCML: WARNING /usr/local/kcml/kcml... (3 Replies)
Hi all,
I need your help to explain how I can extract a time span from the syslog messages file on a Solaris 10 system.
Here is an example extract of the syslog messages:
Dec 4 11:51:38 hajap141-0107.nls.jlrint.com 267938: Dec 4 11:51:36: %DOT11-6-DISASSOC: Interface Dot11Radio0,... (4 Replies)
We have recently installed syslog-ng on at Sun t5240 running Solaris 10.
There seem to be a number of problems connected with the installation the most significant of which is that the messages file is no longer rotating.
The /etc/logadm.conf file has been changed to reflect syslog-ng... (6 Replies)
Hi,
I want to collect all syslog messages from thses servers to a central syslog server and store them in seperate files.
I created new Redhat server to collect all the system logs, from Linux, Windows and Cisco to this new server.
For example:
syslog messages from server NY01 >... (4 Replies)
Hi @ all,
there´s another problem which I have with syslog-ng, perhaps somebody have a solution:
We´ve a server which sent his messages-log to another Server - worked well with ... destination logserver ... and so on.
in the /var/log/messages there´s every 5 minutes an entry like this
...... (4 Replies)
Hi All,
When can we see these messages in the syslog.
We have service guard cluster software installed on hpux 11iv3 servers.
We were able to see the below error so many times in our syslog messages
cmdisklockd: Unable to convert device to I/O tree node: I/O tree node does not exist.
... (2 Replies)
Hello,
Could you please check the below errors. I found these errors in AIX LPAR syslogs.
auth|security:err|error sshd error: Could not load host key: /etc/ssh/ssh_host_ecdsa_key
daemon:err|error syslog: slp: 0660-059 Impossible to get local interface for distant address 10.x.x.x. errno... (2 Replies)
Hello to everyone! I have a question about syslog.
I want put the messages of log in a particular file
but really i don't know how to do that or i don't get the results
that I want.
I do this:
#include <stdio.h>
#include <stdlib.h>
#include <syslog.h>
int main (void)
{
... (4 Replies)
These errors keep generating in the syslog which is quite annoying for monitoring for other errors as these are flooding it. Anyone know how to resolve these? Help appreciated.
cimservera: user2netname: unknown nameservice ^I^I^I^I^Ifor publickey info 'ldap'
Nov 19 13:31:30 server1 sshd:... (4 Replies)