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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
d70dcec4
Commit
d70dcec4
authored
Feb 29, 2012
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixing pam plugin to compile again
parent
71ca1d67
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 @
d70dcec4
...
...
@@ -5,6 +5,9 @@ CHECK_INCLUDE_FILES (security/pam_appl.h HAVE_PAM_APPL_H)
CHECK_FUNCTION_EXISTS
(
strndup HAVE_STRNDUP
)
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
)
ENDIF
(
HAVE_PAM_APPL_H
)
plugin/auth_pam/auth_pam.c
View file @
d70dcec4
...
...
@@ -14,13 +14,10 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
/* For strndup() */
#endif
#define _GNU_SOURCE 1
/* for strndup */
#include <mysql/plugin_auth.h>
#include <string.h>
#include <my_config.h>
#include <security/pam_appl.h>
#include <security/pam_modules.h>
...
...
@@ -123,8 +120,7 @@ static int pam_auth(MYSQL_PLUGIN_VIO *vio, MYSQL_SERVER_AUTH_INFO *info)
const
char
*
new_username
;
struct
param
param
;
/* The following is written in such a way to make also solaris happy */
struct
pam_conv
pam_start_arg
=
{
&
conv
,
NULL
};
pam_start_arg
.
appdata_ptr
=
(
char
*
)
&
param
;
struct
pam_conv
pam_start_arg
=
{
&
conv
,
(
char
*
)
&
param
};
/*
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