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
df704b5a
Commit
df704b5a
authored
Jun 19, 2018
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
don't use my_error(0) or my_printf_error(0)
there's an assert that catches it
parent
af2dd582
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
plugin/auth_gssapi/gssapi_server.cc
plugin/auth_gssapi/gssapi_server.cc
+5
-5
No files found.
plugin/auth_gssapi/gssapi_server.cc
View file @
df704b5a
...
...
@@ -44,21 +44,21 @@ static char* get_default_principal_name()
if
(
krb5_init_context
(
&
context
))
{
my_printf_error
(
0
,
"GSSAPI plugin : krb5_init_context failed"
,
my_printf_error
(
1
,
"GSSAPI plugin : krb5_init_context failed"
,
ME_ERROR_LOG
|
ME_WARNING
);
goto
cleanup
;
}
if
(
krb5_sname_to_principal
(
context
,
NULL
,
"mariadb"
,
KRB5_NT_SRV_HST
,
&
principal
))
{
my_printf_error
(
0
,
"GSSAPI plugin : krb5_sname_to_principal failed"
,
my_printf_error
(
1
,
"GSSAPI plugin : krb5_sname_to_principal failed"
,
ME_ERROR_LOG
|
ME_WARNING
);
goto
cleanup
;
}
if
(
krb5_unparse_name
(
context
,
principal
,
&
unparsed_name
))
{
my_printf_error
(
0
,
"GSSAPI plugin : krb5_unparse_name failed"
,
my_printf_error
(
1
,
"GSSAPI plugin : krb5_unparse_name failed"
,
ME_ERROR_LOG
|
ME_WARNING
);
goto
cleanup
;
}
...
...
@@ -66,7 +66,7 @@ static char* get_default_principal_name()
/* Check for entry in keytab */
if
(
krb5_kt_read_service_key
(
context
,
NULL
,
principal
,
0
,
(
krb5_enctype
)
0
,
&
key
))
{
my_printf_error
(
0
,
"GSSAPI plugin : default principal '%s' not found in keytab"
,
my_printf_error
(
1
,
"GSSAPI plugin : default principal '%s' not found in keytab"
,
ME_ERROR_LOG
|
ME_WARNING
,
unparsed_name
);
goto
cleanup
;
}
...
...
@@ -104,7 +104,7 @@ int plugin_init()
/* import service principal from plain text */
if
(
srv_principal_name
&&
srv_principal_name
[
0
])
{
my_printf_error
(
0
,
"GSSAPI plugin : using principal name '%s'"
,
my_printf_error
(
1
,
"GSSAPI plugin : using principal name '%s'"
,
ME_ERROR_LOG
|
ME_NOTE
,
srv_principal_name
);
principal_name_buf
.
length
=
strlen
(
srv_principal_name
);
principal_name_buf
.
value
=
srv_principal_name
;
...
...
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