Logon scripts question

activedirectory

(Jeroen Visser) #4

The short version of the guide is: connect your microsoft tools to nsdc-servername once you installed the AD account provider, and it will act as any regular AD environment.

When you install the AD account provider, you are asked for an IP in the same segment as your Nethserver green-interface. That is the IP you can connect to with mmc snap-ins.

You will have to ‘mix’ as Nethserver does not provide tools to administer the active directory, at all. Barring user creation, you need microsoft or compatible tools. The good thing is, they work like normal.


(Dan) #5

You can, but you’ll need to install it: yum install nano.


(quizhead) #7

can I write regular windows scripts?
for example for net use:
net use a:\Network path /persistent: yes


(Markus Neuberger) #8

Yes, that’s possible.


(quizhead) #10

Thank you for the answer.
Now, how can I relate this logon script to a specific user, in a way that whenever the user logs own he/she will see the the drive letter ?

Thank you.


(Markus Neuberger) #11

There’s a thread about this:

There’s also a windows file server page and I just recognized an incredible AD howto from @planet_jeroen, both may also cover this topic (in future)…


(quizhead) #13

I made the steps in this howto and I’m not able to get to netlogon folder allthough I’m using an admin user.
Any ideas ?
Thank you.


(Jeroen Visser) #14

Just paste the script in \\nsdc-servername\netlogon and it should work when it is entered in the user-profile.


(quizhead) #15

Not working.


(Jeroen Visser) #16

I just created a file logon.bat in my netlogon share, with the following content:
net use k: \servername\share

I added ‘logon.bat’ to my users profile as logon script, and have the expected share after logging out and back in. You probably have a typo somewhere if this doesnt work for you, or there is something else wrong. Without error logs it is hard to predict what is wrong.


(Stefano Zamboni) #17

“not working” doesn’t work for us either, meaning that we can’t help you if you don’t help us to understand…
please attach some logs or screenshots
thank you


(quizhead) #18

I’m able to get to the nsdc server by using its IP through the user pc
meaning, I log on as administrator to the user pc and use \ip and not \nsdc-server.
But this is where I stopped,


(quizhead) #19

sorry I’m new to this.
Don’t know where are the logs.


(Jeroen Visser) #20

\\ip\netlogon\ should work as well. You just place any script there, and reference it in the userprofile under the profile tab, as logon script, woithout the \\ip\netlogon part.

So if there is a script called abc.def in your netlogon share, you will only put abc.def in the logon script field of the user.


(Jeroen Visser) #21


(quizhead) #23

This what I see and can’t get into netlogon and I don’t have the properties in your pic.
Unbenannt2


(Markus Neuberger) #24

I tried it now and was able to connect via hostname instead of IP. The AD server which is a virtual container has it’s own name formed of nsdc-YOURNETHSERVERNAME. My NethServer is called server, so I have the AD container including the netlogonshare available with hostname nsdc-server.

grafik


(Jeroen Visser) #25

You should use \netbiosdomainname\administrator to logon to that share, and should then have access to it … you can find the logs here:

afbeelding

Not sure which one to look in tho :blush:


(quizhead) #26

how can I know my server name ?


(Jeroen Visser) #27

First thing to know is that your NethServer is not the Samba AD server.
You installed your NethServer with some name, you can find that under Server Name in the server manager.
The server manager can be found at the IP of your server on port 980

https://ip:980

Your Samba AD container, will get the same name, with ‘nsdc-’ prepended. So if you named your server ‘myserver’ your AD container will be ‘nsdc-myserver’.

That name will only resolve when you use the same DNS server tho, so perhaps that isnt ready yet as you are installing, and that would explain why you need IP’s.