OSDN Git Service

modified comments
[opengatem/opengatem.git] / mngsrc / auth-pam.c
index 3a746c2..e24d742 100644 (file)
@@ -56,6 +56,7 @@ int authPam(char *userid, char *passwd)
   /* 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{
@@ -64,7 +65,7 @@ int authPam(char *userid, char *passwd)
   
   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;