pam_tacplus.c (87398) | pam_tacplus.c (89760) |
---|---|
1/*- 2 * Copyright 1998 Juniper Networks, Inc. 3 * All rights reserved. 4 * Copyright (c) 2001 Networks Associates Technologies, Inc. 5 * All rights reserved. 6 * 7 * Portions of this software were developed for the FreeBSD Project by 8 * ThinkSec AS and NAI Labs, the Security Research Division of Network --- 21 unchanged lines hidden (view full) --- 30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34 * SUCH DAMAGE. 35 */ 36 37#include <sys/cdefs.h> | 1/*- 2 * Copyright 1998 Juniper Networks, Inc. 3 * All rights reserved. 4 * Copyright (c) 2001 Networks Associates Technologies, Inc. 5 * All rights reserved. 6 * 7 * Portions of this software were developed for the FreeBSD Project by 8 * ThinkSec AS and NAI Labs, the Security Research Division of Network --- 21 unchanged lines hidden (view full) --- 30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34 * SUCH DAMAGE. 35 */ 36 37#include <sys/cdefs.h> |
38__FBSDID("$FreeBSD: head/lib/libpam/modules/pam_tacplus/pam_tacplus.c 87398 2001-12-05 16:06:35Z des $"); | 38__FBSDID("$FreeBSD: head/lib/libpam/modules/pam_tacplus/pam_tacplus.c 89760 2002-01-24 18:37:17Z markm $"); |
39 40#include <sys/param.h> 41 42#include <pwd.h> 43#include <stdlib.h> 44#include <string.h> 45#include <syslog.h> 46#include <taclib.h> --- 62 unchanged lines hidden (view full) --- 109 syslog(LOG_CRIT, "tac_set_msg: %s", tac_strerror(tach)); 110 tac_close(tach); 111 return -1; 112 } 113 return 0; 114} 115 116PAM_EXTERN int | 39 40#include <sys/param.h> 41 42#include <pwd.h> 43#include <stdlib.h> 44#include <string.h> 45#include <syslog.h> 46#include <taclib.h> --- 62 unchanged lines hidden (view full) --- 109 syslog(LOG_CRIT, "tac_set_msg: %s", tac_strerror(tach)); 110 tac_close(tach); 111 return -1; 112 } 113 return 0; 114} 115 116PAM_EXTERN int |
117pam_sm_authenticate(pam_handle_t *pamh, int flags, int argc, | 117pam_sm_authenticate(pam_handle_t *pamh, int flags __unused, int argc, |
118 const char **argv) 119{ 120 struct options options; 121 int retval; 122 struct tac_handle *tach; 123 char *conf_file; 124 char *template_user; 125 --- 157 unchanged lines hidden (view full) --- 283 "tac_send_authen: unexpected status %#x", status); 284 tac_close(tach); 285 PAM_RETURN(PAM_AUTHINFO_UNAVAIL); 286 } 287 } 288} 289 290PAM_EXTERN int | 118 const char **argv) 119{ 120 struct options options; 121 int retval; 122 struct tac_handle *tach; 123 char *conf_file; 124 char *template_user; 125 --- 157 unchanged lines hidden (view full) --- 283 "tac_send_authen: unexpected status %#x", status); 284 tac_close(tach); 285 PAM_RETURN(PAM_AUTHINFO_UNAVAIL); 286 } 287 } 288} 289 290PAM_EXTERN int |
291pam_sm_setcred(pam_handle_t *pamh, int flags, int argc, const char **argv) | 291pam_sm_setcred(pam_handle_t *pamh __unused, int flags __unused, int argc, const char **argv) |
292{ 293 struct options options; 294 295 pam_std_option(&options, NULL, argc, argv); 296 297 PAM_LOG("Options processed"); 298 299 PAM_RETURN(PAM_IGNORE); 300} 301 302PAM_EXTERN int | 292{ 293 struct options options; 294 295 pam_std_option(&options, NULL, argc, argv); 296 297 PAM_LOG("Options processed"); 298 299 PAM_RETURN(PAM_IGNORE); 300} 301 302PAM_EXTERN int |
303pam_sm_acct_mgmt(pam_handle_t *pamh, int flags, int argc ,const char **argv) | 303pam_sm_acct_mgmt(pam_handle_t *pamh __unused, int flags __unused, int argc ,const char **argv) |
304{ 305 struct options options; 306 307 pam_std_option(&options, NULL, argc, argv); 308 309 PAM_LOG("Options processed"); 310 311 PAM_RETURN(PAM_IGNORE); 312} 313 314PAM_EXTERN int | 304{ 305 struct options options; 306 307 pam_std_option(&options, NULL, argc, argv); 308 309 PAM_LOG("Options processed"); 310 311 PAM_RETURN(PAM_IGNORE); 312} 313 314PAM_EXTERN int |
315pam_sm_chauthtok(pam_handle_t *pamh, int flags, int argc, const char **argv) | 315pam_sm_chauthtok(pam_handle_t *pamh __unused, int flags __unused, int argc, const char **argv) |
316{ 317 struct options options; 318 319 pam_std_option(&options, NULL, argc, argv); 320 321 PAM_LOG("Options processed"); 322 323 PAM_RETURN(PAM_IGNORE); 324} 325 326PAM_EXTERN int | 316{ 317 struct options options; 318 319 pam_std_option(&options, NULL, argc, argv); 320 321 PAM_LOG("Options processed"); 322 323 PAM_RETURN(PAM_IGNORE); 324} 325 326PAM_EXTERN int |
327pam_sm_open_session(pam_handle_t *pamh, int flags, int argc, const char **argv) | 327pam_sm_open_session(pam_handle_t *pamh __unused, int flags __unused, int argc, const char **argv) |
328{ 329 struct options options; 330 331 pam_std_option(&options, NULL, argc, argv); 332 333 PAM_LOG("Options processed"); 334 335 PAM_RETURN(PAM_IGNORE); 336} 337 338PAM_EXTERN int | 328{ 329 struct options options; 330 331 pam_std_option(&options, NULL, argc, argv); 332 333 PAM_LOG("Options processed"); 334 335 PAM_RETURN(PAM_IGNORE); 336} 337 338PAM_EXTERN int |
339pam_sm_close_session(pam_handle_t *pamh, int flags, int argc, const char **argv) | 339pam_sm_close_session(pam_handle_t *pamh __unused, int flags __unused, int argc, const char **argv) |
340{ 341 struct options options; 342 343 pam_std_option(&options, NULL, argc, argv); 344 345 PAM_LOG("Options processed"); 346 347 PAM_RETURN(PAM_IGNORE); 348} 349 350PAM_MODULE_ENTRY("pam_tacplus"); | 340{ 341 struct options options; 342 343 pam_std_option(&options, NULL, argc, argv); 344 345 PAM_LOG("Options processed"); 346 347 PAM_RETURN(PAM_IGNORE); 348} 349 350PAM_MODULE_ENTRY("pam_tacplus"); |