Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
a2478a6c
Commit
a2478a6c
authored
Feb 29, 2012
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixing pam plugin to compile again
parent
e4bfb6f1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
6 deletions
+5
-6
plugin/auth_pam/CMakeLists.txt
plugin/auth_pam/CMakeLists.txt
+3
-0
plugin/auth_pam/auth_pam.c
plugin/auth_pam/auth_pam.c
+2
-6
No files found.
plugin/auth_pam/CMakeLists.txt
View file @
a2478a6c
...
@@ -5,6 +5,9 @@ CHECK_INCLUDE_FILES (security/pam_appl.h HAVE_PAM_APPL_H)
...
@@ -5,6 +5,9 @@ CHECK_INCLUDE_FILES (security/pam_appl.h HAVE_PAM_APPL_H)
CHECK_FUNCTION_EXISTS
(
strndup HAVE_STRNDUP
)
CHECK_FUNCTION_EXISTS
(
strndup HAVE_STRNDUP
)
IF
(
HAVE_PAM_APPL_H
)
IF
(
HAVE_PAM_APPL_H
)
IF
(
HAVE_STRNDUP
)
ADD_DEFINITIONS
(
-DHAVE_STRNDUP
)
ENDIF
(
HAVE_STRNDUP
)
MYSQL_ADD_PLUGIN
(
auth_pam auth_pam.c LINK_LIBRARIES pam MODULE_ONLY
)
MYSQL_ADD_PLUGIN
(
auth_pam auth_pam.c LINK_LIBRARIES pam MODULE_ONLY
)
ENDIF
(
HAVE_PAM_APPL_H
)
ENDIF
(
HAVE_PAM_APPL_H
)
plugin/auth_pam/auth_pam.c
View file @
a2478a6c
...
@@ -14,13 +14,10 @@
...
@@ -14,13 +14,10 @@
along with this program; if not, write to the Free Software
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE 1
/* for strndup */
#define _GNU_SOURCE
/* For strndup() */
#endif
#include <mysql/plugin_auth.h>
#include <mysql/plugin_auth.h>
#include <string.h>
#include <string.h>
#include <my_config.h>
#include <security/pam_appl.h>
#include <security/pam_appl.h>
#include <security/pam_modules.h>
#include <security/pam_modules.h>
...
@@ -123,8 +120,7 @@ static int pam_auth(MYSQL_PLUGIN_VIO *vio, MYSQL_SERVER_AUTH_INFO *info)
...
@@ -123,8 +120,7 @@ static int pam_auth(MYSQL_PLUGIN_VIO *vio, MYSQL_SERVER_AUTH_INFO *info)
const
char
*
new_username
;
const
char
*
new_username
;
struct
param
param
;
struct
param
param
;
/* The following is written in such a way to make also solaris happy */
/* The following is written in such a way to make also solaris happy */
struct
pam_conv
pam_start_arg
=
{
&
conv
,
NULL
};
struct
pam_conv
pam_start_arg
=
{
&
conv
,
(
char
*
)
&
param
};
pam_start_arg
.
appdata_ptr
=
(
char
*
)
&
param
;
/*
/*
get the service name, as specified in
get the service name, as specified in
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment