Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
mailutils
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
d7fe456f
...
d7fe456f61e86d8bfeffb6a4557ddb7512326d1c
authored
2002-12-27 19:29:52 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Added NLS support
1 parent
dc63794a
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
20 deletions
auth/Makefile.am
auth/pam.c
auth/sql.c
auth/virtual.c
auth/Makefile.am
View file @
d7fe456
...
...
@@ -12,4 +12,5 @@ pam.c \
sql.c
\
virtual.c
libmuauth_la_LIBADD
=
@LTLIBINTL@
libmuauth_la_LDFLAGS
=
-version-info 0:0:0
...
...
auth/pam.c
View file @
d7fe456
...
...
@@ -45,6 +45,7 @@
#include <mailutils/mailbox.h>
#include <mailutils/argp.h>
#include <mailutils/mu_auth.h>
#include <mailutils/nls.h>
char
*
pam_service
=
NULL
;
...
...
@@ -150,8 +151,8 @@ mu_pam_argp_parser (int key, char *arg, struct argp_state *state)
}
static
struct
argp_option
mu_pam_argp_option
[]
=
{
{
"pam-service"
,
ARG_PAM_SERVICE
,
"STRING"
,
0
,
"Use STRING as PAM service name"
,
0
},
{
"pam-service"
,
ARG_PAM_SERVICE
,
N_
(
"STRING"
)
,
0
,
N_
(
"Use STRING as PAM service name"
)
,
0
},
{
NULL
,
0
,
NULL
,
0
,
NULL
,
0
}
};
...
...
auth/sql.c
View file @
d7fe456
...
...
@@ -43,6 +43,7 @@
#include <mailutils/argp.h>
#include <mailutils/mu_auth.h>
#include <mailutils/error.h>
#include <mailutils/nls.h>
#ifdef HAVE_MYSQL
#include <mysql/mysql.h>
...
...
@@ -396,22 +397,22 @@ mu_sql_authenticate (void *ignored_return_data, void *key,
# define ARG_SQL_PORT 8
static
struct
argp_option
mu_sql_argp_option
[]
=
{
{
"sql-getpwnam"
,
ARG_SQL_GETPWNAM
,
"QUERY"
,
0
,
"SQL query to retrieve a passwd entry based on username"
,
0
},
{
"sql-getpwuid"
,
ARG_SQL_GETPWUID
,
"QUERY"
,
0
,
"SQL query to retrieve a passwd entry based on UID"
,
0
},
{
"sql-getpass"
,
ARG_SQL_GETPASS
,
"QUERY"
,
0
,
"SQL query to retrieve a password from the database"
,
0
},
{
"sql-host"
,
ARG_SQL_HOST
,
"HOSTNAME"
,
0
,
"Name or IP of MySQL server to connect to"
,
0
},
{
"sql-user"
,
ARG_SQL_USER
,
"NAME"
,
0
,
"SQL user name"
,
0
},
{
"sql-passwd"
,
ARG_SQL_PASSWD
,
"STRING"
,
0
,
"SQL connection password"
,
0
},
{
"sql-db"
,
ARG_SQL_DB
,
"STRING"
,
0
,
"Name of the database to connect to"
,
0
},
{
"sql-port"
,
ARG_SQL_PORT
,
"NUMBER"
,
0
,
"Port to use"
,
0
},
{
"sql-getpwnam"
,
ARG_SQL_GETPWNAM
,
N_
(
"QUERY"
)
,
0
,
N_
(
"SQL query to retrieve a passwd entry based on username"
)
,
0
},
{
"sql-getpwuid"
,
ARG_SQL_GETPWUID
,
N_
(
"QUERY"
)
,
0
,
N_
(
"SQL query to retrieve a passwd entry based on UID"
)
,
0
},
{
"sql-getpass"
,
ARG_SQL_GETPASS
,
N_
(
"QUERY"
)
,
0
,
N_
(
"SQL query to retrieve a password from the database"
)
,
0
},
{
"sql-host"
,
ARG_SQL_HOST
,
N_
(
"HOSTNAME"
)
,
0
,
N_
(
"Name or IP of MySQL server to connect to"
)
,
0
},
{
"sql-user"
,
ARG_SQL_USER
,
N_
(
"NAME"
)
,
0
,
N_
(
"SQL user name"
)
,
0
},
{
"sql-passwd"
,
ARG_SQL_PASSWD
,
N_
(
"STRING"
)
,
0
,
N_
(
"SQL connection password"
)
,
0
},
{
"sql-db"
,
ARG_SQL_DB
,
N_
(
"STRING"
)
,
0
,
N_
(
"Name of the database to connect to"
)
,
0
},
{
"sql-port"
,
ARG_SQL_PORT
,
N_
(
"NUMBER"
)
,
0
,
N_
(
"Port to use"
)
,
0
},
{
NULL
,
0
,
NULL
,
0
,
NULL
,
0
}
};
...
...
auth/virtual.c
View file @
d7fe456
...
...
@@ -51,6 +51,7 @@
#include <mailutils/mailbox.h>
#include <mailutils/argp.h>
#include <mailutils/mu_auth.h>
#include <mailutils/nls.h>
#ifdef ENABLE_VIRTUAL_DOMAINS
...
...
@@ -189,8 +190,8 @@ mu_virt_argp_parser (int key, char *arg, struct argp_state *state)
}
static
struct
argp_option
mu_virt_argp_option
[]
=
{
{
"virtual-passwd-dir"
,
ARG_PWDDIR
,
"DIR"
,
0
,
"Search for virtual passwd file in DIR"
,
0
},
{
"virtual-passwd-dir"
,
ARG_PWDDIR
,
N_
(
"DIR"
)
,
0
,
N_
(
"Search for virtual passwd file in DIR"
)
,
0
},
{
NULL
,
0
,
NULL
,
0
,
NULL
,
0
}
};
...
...
Please
register
or
sign in
to post a comment