Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
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
videolan
vlc
Commits
9acd0bb3
Commit
9acd0bb3
authored
May 20, 2015
by
Thomas Guillem
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dsm: use domain only when specified
parent
6f4454b3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
modules/access/dsm/access.c
modules/access/dsm/access.c
+3
-4
No files found.
modules/access/dsm/access.c
View file @
9acd0bb3
...
...
@@ -385,8 +385,10 @@ static void login_dialog( access_t *p_access )
static
int
smb_connect
(
access_t
*
p_access
)
{
access_sys_t
*
p_sys
=
p_access
->
p_sys
;
const
char
*
psz_domain
=
p_sys
->
creds
.
domain
?
p_sys
->
creds
.
domain
:
p_sys
->
netbios_name
;
smb_session_set_creds
(
p_sys
->
p_session
,
p
_sys
->
creds
.
domain
,
smb_session_set_creds
(
p_sys
->
p_session
,
p
sz_
domain
,
p_sys
->
creds
.
login
,
p_sys
->
creds
.
password
);
return
smb_session_login
(
p_sys
->
p_session
)
?
VLC_SUCCESS
:
VLC_EGENERIC
;
}
...
...
@@ -401,8 +403,6 @@ static int login( access_t *p_access )
p_sys
->
creds
.
login
=
strdup
(
"Guest"
);
if
(
p_sys
->
creds
.
password
==
NULL
)
p_sys
->
creds
.
password
=
strdup
(
"Guest"
);
if
(
p_sys
->
creds
.
domain
==
NULL
)
p_sys
->
creds
.
domain
=
strdup
(
"WORKGROUP"
);
/* Try to authenticate on the remote machine */
if
(
smb_connect
(
p_access
)
!=
VLC_SUCCESS
)
...
...
@@ -414,7 +414,6 @@ static int login( access_t *p_access )
return
VLC_SUCCESS
;
}
/* FIXME, Try to force netbios name as domain then WORKGROUP here */
msg_Err
(
p_access
,
"Unable to login with username = %s, domain = %s"
,
p_sys
->
creds
.
login
,
p_sys
->
creds
.
domain
);
return
VLC_EGENERIC
;
...
...
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