OSDN Git Service
(root)
/
opengatem
/
opengatem.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
modified comments
[opengatem/opengatem.git]
/
mngsrc
/
auth-pam.c
diff --git
a/mngsrc/auth-pam.c
b/mngsrc/auth-pam.c
index
3a746c2
..
e24d742
100644
(file)
--- a/
mngsrc/auth-pam.c
+++ b/
mngsrc/auth-pam.c
@@
-56,6
+56,7
@@
int authPam(char *userid, char *passwd)
/* get pam service name used in pam config file */
serviceNameInConf=GetConfValue("AuthServer/ServiceName");
/* get pam service name used in pam config file */
serviceNameInConf=GetConfValue("AuthServer/ServiceName");
+ /* if not defined in conf, use the default name 'opengate' */
if(isNull(serviceNameInConf)){
strlcpy(serviceName, PAMSERVICENAME, ADDRMAXLN);
}else{
if(isNull(serviceNameInConf)){
strlcpy(serviceName, PAMSERVICENAME, ADDRMAXLN);
}else{
@@
-64,7
+65,7
@@
int authPam(char *userid, char *passwd)
if(!userid || !passwd) return DENY;
if(!userid || !passwd) return DENY;
- /* set userInfo which is passed to call
back function */
+ /* set userInfo which is passed to call
-
back function */
userInfo.userid=userid;
userInfo.password=passwd;
userInfo.userid=userid;
userInfo.password=passwd;