PDA

View Full Version : Windows Domain Membership



odirneto1309
11-Sep-2017, 18:35
Hello, guys!

I've been working on homologate SLED for our company.
As we use a Active Directory structure, I used the documentation from SLED and was perfectly able to join the DOMAIN using the WINDOWS DOMAIN MEMBERSHIP tool.

However, I want to use the "expert configuration" to auto mount windows directories in the local machine.

I entered in yast2>windows domain membership>expert settings>mount server directories

Do you guys have any how-to of using this?

I tried this configuration:
name server: 192.168.4.x (IP of server)
remote path: /sistema
local path: /mnt
options: user=%(DOMAIN_USER)


This is the last step to homologate SUSE for us. Do you guys have any kind of help to give me?

malcolmlewis
11-Sep-2017, 19:24
Hello, guys!

I've been working on homologate SLED for our company.
As we use a Active Directory structure, I used the documentation from SLED and was perfectly able to join the DOMAIN using the WINDOWS DOMAIN MEMBERSHIP tool.

However, I want to use the "expert configuration" to auto mount windows directories in the local machine.

I entered in yast2>windows domain membership>expert settings>mount server directories

Do you guys have any how-to of using this?

I tried this configuration:
name server: 192.168.4.x (IP of server)
remote path: /sistema
local path: /mnt
options: user=%(DOMAIN_USER)


This is the last step to homologate SUSE for us. Do you guys have any kind of help to give me?
Hi and welcome to the forum :)
What version of SLED, please post output from;


cat /etc/os-release


So is this a samba/cifs share? If so look at using the SMB client from the host trying to connect to provide debug info;


smbclient -d 3 -L 192.168.4.x
smbclient -d 3 //192.168.4.x/sistema -U <username>

This will add some debug

odirneto1309
11-Sep-2017, 21:34
@malconlewis

Thank you for the welcome.

About the first command, it list normally the DOMAIN CONTROLLER and the local machine. And it connect normally to the share under smbclient (but asks for password).

The big doubt is how to use the EXPERT SETTINGS from the WINDOWS DOMAIN MEMBERSHIP to make the SLED moutn this share on user login (and don't ask for passaword).

malcolmlewis
11-Sep-2017, 23:11
On Mon 11 Sep 2017 08:44:02 PM CDT, odirneto1309 wrote:

@malconlewis

Thank you for the welcome.

About the first command, it list normally the DOMAIN CONTROLLER and the
local machine. And it connect normally to the share under smbclient (but
asks for password).

The big doubt is how to use the EXPERT SETTINGS from the WINDOWS DOMAIN
MEMBERSHIP to make the SLED moutn this share on user login (and don't
ask for passaword).




Hi
OK, so it's for a user after login... In this case are they logging
into the Desktop (Gnome?) or just access from a command line?

You need a user mount point eg /home/username/share in the settings
AFAIK (not /mnt) so it's at a user level not system.

There are lots of other methods these days, Nautilus will mount it, or
gvfs-mount if only command line access.

--
Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
openSUSE Leap 42.2|GNOME 3.20.2|4.4.79-18.26-default
If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below... Thanks!

odirneto1309
12-Sep-2017, 12:38
@malconlewis

I'm using XFCE for greater performance in the workstations.

I need the share to be mount on login because our ERP need it to be mount when it start up. I can't leave this task to our operator.

I've tryed to change the local path to a home folder, without sucess.

name server: 192.168.4.x
remote patch /sistema
local path /home/PETMAIS/Administrator/share (i'm login using AD administrator ACCOUNT)
option user=@(DOMAIN_USER)
user name = <blank>

malcolmlewis
12-Sep-2017, 13:33
On Tue 12 Sep 2017 11:44:02 AM CDT, odirneto1309 wrote:

@malconlewis

I'm using XFCE for greater performance in the workstations.

I need the share to be mount on login because our ERP need it to be
mount when it start up. I can't leave this task to our operator.

I've tryed to change the local path to a home folder, without sucess.

name server: 192.168.4.x
remote patch /sistema
local path /home/PETMAIS/Administrator/share (i'm login using AD
administrator ACCOUNT)
option user=@(DOMAIN_USER)
user name = <blank>




Hi
OK, if you look down at /etc/samba/smb.conf file are the above entries
added here? Is it just one share for all users, or username share?

If just one share, this could be added to the system fstab...

--
Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
openSUSE Leap 42.2|GNOME 3.20.2|4.4.79-18.26-default
If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below... Thanks!

odirneto1309
12-Sep-2017, 16:11
@malconlewis

Its the same share, but it has to be mount with the AD permissions.

Thats because, some users have edit and deleting permissions, and other dont.

So, thats why I was trying to do this using WINDOWS DOMAIN MEMBERSHIP from SUSE to do this. Theres this option in EXPERT SETTINGS that should be working. However, I cant find any DOCs about it.

If the only way is to use fstab or autofs, those solutions are not integrated to AD, so its not worth to use it in our enviroment because we need this integration.

malcolmlewis
12-Sep-2017, 16:49
@malconlewis

Its the same share, but it has to be mount with the AD permissions.

Thats because, some users have edit and deleting permissions, and other dont.

So, thats why I was trying to do this using WINDOWS DOMAIN MEMBERSHIP from SUSE to do this. Theres this option in EXPERT SETTINGS that should be working. However, I cant find any DOCs about it.

If the only way is to use fstab or autofs, those solutions are not integrated to AD, so its not worth to use it in our enviroment because we need this integration.
Hi
OK, looks like this should help;
https://forums.opensuse.org/showthread.php/522206-windows-domain-membership-Mount-Server-Directories