cpjitservices Posted July 18, 2012 Posted July 18, 2012 I am trying to map a drive - We have a share on a Samba server (CentOS 5) I have tried mapping it through GP Preferences but it doesn't show the drive although I have not selected "Hide this drive". The users have separate logins for the Samba share for example my Windows Domain Username might be "joebloggs" but on samba it might be "jb". What I'm after is a script or similar that will map to the drive but map it so that the user double clicks it and can then "enter the correct credentials" but I cant seem to map it unless I put in the credentials first. Through CMD I can map to it but only after I have specified the Login credentials for the share, but I don't want that I want the user to input it. I did make a script a while ago and everybody complained that the black box keeps asking for a password.... I got the drives mapped through a batch file but it asked for the password in a CMD window first, once the password was entered and the user pressed enter then the drive was mapped. Also: I have tried to get samba to work via SSO on my domain and failed miserably so thats out the window. Anybody any Ideas ? TIA.
glennda Posted July 18, 2012 Posted July 18, 2012 Why don't you setup the Samba Server to auth against AD? surely that makes it simplier? There is a good guide on the Wiki - but never tried it with Centos - with Ubuntu it works Alternatively you could setup the usernames the same on the samba server and use things like %username% etc in the batch files. 1
cpjitservices Posted July 18, 2012 Author Posted July 18, 2012 tried to setup my Samba server to authenticate against AD and couldn't get it to work! I might try and add accounts in AD the same as the ones in Samba.
glennda Posted July 18, 2012 Posted July 18, 2012 tried to setup my Samba server to authenticate against AD and couldn't get it to work! I might try and add accounts in AD the same as the ones in Samba. Well depends on how secure you want to be but you could do something like with the password parameter as the username? net use P: \\server\share /user:%username% %username% (i can't remember where you put password in when scripting).
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now