lists.arthurdejong.org
RSS feed

nss-pam-ldapd commit: r1120 - nss-pam-ldapd/pam

[Date Prev][Date Next] [Thread Prev][Thread Next]

nss-pam-ldapd commit: r1120 - nss-pam-ldapd/pam



Author: arthur
Date: Mon May 24 23:43:51 2010
New Revision: 1120
URL: http://arthurdejong.org/viewvc/nss-pam-ldapd?view=rev&revision=1120

Log:
make code more consistent

Modified:
   nss-pam-ldapd/pam/pam.c

Modified: nss-pam-ldapd/pam/pam.c
==============================================================================
--- nss-pam-ldapd/pam/pam.c     Mon May 24 23:36:54 2010        (r1119)
+++ nss-pam-ldapd/pam/pam.c     Mon May 24 23:43:51 2010        (r1120)
@@ -105,7 +105,7 @@
   struct pld_ctx *ctx=NULL;
   int rc;
   /* try to get the context from PAM */
-  rc=pam_get_data(pamh, PLD_CTX,(const void **)&ctx);
+  rc=pam_get_data(pamh,PLD_CTX,(const void **)&ctx);
   if ((rc==PAM_SUCCESS)&&(ctx!=NULL))
   {
     /* if the user is different clear the context */
@@ -171,7 +171,7 @@
       cfg->try_first_pass=1;
     else if (strcmp(argv[i],"use_authtok")==0)
       /* ignore, this option is used by pam_get_authtok() internally */;
-    else if (strcmp(argv[i], "no_warn")==0)
+    else if (strcmp(argv[i],"no_warn")==0)
       cfg->no_warn=1;
     else if (strcmp(argv[i],"ignore_unknown_user")==0)
       cfg->ignore_unknown_user=1;
@@ -179,7 +179,7 @@
       cfg->ignore_authinfo_unavail=1;
     else if (strcmp(argv[i],"debug")==0)
       cfg->debug=1;
-    else if (strncmp(argv[i], "minimum_uid=", 12) == 0)
+    else if (strncmp(argv[i],"minimum_uid=",12) == 0)
       cfg->minimum_uid=(uid_t)atoi(argv[i]+12);
     else
       pam_syslog(pamh,LOG_ERR,"unknown option: %s",argv[i]);
@@ -248,7 +248,7 @@
 
 /* perform an authentication call over nslcd */
 static int nslcd_request_authc(pam_handle_t *pamh,struct pld_ctx *ctx,struct 
pld_cfg *cfg,
-                               const char *username, const char *service,
+                               const char *username,const char *service,
                                const char *passwd)
 {
   PAM_REQUEST(NSLCD_ACTION_PAM_AUTHC,
@@ -269,7 +269,7 @@
 
 /* perform an authorisation call over nslcd */
 static int nslcd_request_authz(pam_handle_t *pamh,struct pld_ctx *ctx,struct 
pld_cfg *cfg,
-                               const char *username, const char *service,
+                               const char *username,const char *service,
                                const char *ruser,const char *rhost,
                                const char *tty)
 {
@@ -293,7 +293,7 @@
 /* do a session nslcd request (open or close) */
 static int nslcd_request_sess(pam_handle_t *pamh,struct pld_ctx *ctx,struct 
pld_cfg *cfg,int action,
                               const char *username,const char *service,
-                              const char *tty, const char *rhost,
+                              const char *tty,const char *rhost,
                               const char *ruser)
 {
   PAM_REQUEST(action,
@@ -416,7 +416,7 @@
 {
   int rc;
   struct pld_cfg cfg;
-  struct pld_ctx *ctx=NULL, ctx2;
+  struct pld_ctx *ctx=NULL,ctx2;
   const char *username,*service;
   const char *ruser=NULL,*rhost=NULL,*tty=NULL;
   /* set up configuration */
@@ -508,14 +508,14 @@
 
 /* PAM session open call */
 int pam_sm_open_session(
-  pam_handle_t *pamh, int flags, int argc, const char **argv)
+  pam_handle_t *pamh,int flags,int argc,const char **argv)
 {
   return pam_sm_session(pamh,flags,argc,argv,NSLCD_ACTION_PAM_SESS_O);
 }
 
 /* PAM session close call */
 int pam_sm_close_session(
-  pam_handle_t *pamh, int flags, int argc, const char **argv)
+  pam_handle_t *pamh,int flags,int argc,const char **argv)
 {
   return pam_sm_session(pamh,flags,argc,argv,NSLCD_ACTION_PAM_SESS_C);
 }
--
To unsubscribe send an email to
nss-pam-ldapd-commits-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/nss-pam-ldapd-commits