Highlighted
Absent Member.
Absent Member.
3068 views

Login Script Map to a drive with a password

I want a group of users to have a drive mapped to a different server and folder
the address is
\\Macminiserver\Mac Jobs in Progress\Printers Site Fulfillment
This folder has a login and password on it.
Is there a way to pass a login and password while mapping a drive at the same time?

This part is easy enough
IF MEMBER OF "PSF" THEN

END

I think it might be something like:
MAP M:=\\Macminiserver\Mac Jobs in Progress\Printers Site Fulfillment

But I have not clue on how to pass with login and password.

Thanks
Andy
Labels (1)
0 Likes
4 Replies
Highlighted
Absent Member.
Absent Member.

Re: Login Script Map to a drive with a password

If this server is in the same tree as the one they are mapping into now, there is no need to pass the user credentials again.

If it's in a separate tree then the TREE command will do what you want
Novell Documentation

Note that your map comand will need quotes around the UNC path you give, to cope with the spaces in it.

Andrew C Taubman (Sorry, support is not provided via e-mail) Opinions expressed above are not necessarily those of Micro Focus.
0 Likes
Highlighted
Absent Member.
Absent Member.

Re: Login Script Map to a drive with a password

This drive is not on the Novell network but it is on our network.
It is not on a Tree .

It is a MAC Server and requires a user name and password to access it.
Tree command does not work.
I can use the windows Map drive function but it will prompt the user
for a user name and password.
Trying to find a way around that.



ataubman;2045558 wrote:
If this server is in the same tree as the one they are mapping into now, there is no need to pass the user credentials again.

If it's in a separate tree then the TREE command will do what you want
Novell Documentation

Note that your map comand will need quotes around the UNC path you give, to cope with the spaces in it.
0 Likes
Highlighted
Absent Member.
Absent Member.

Re: Login Script Map to a drive with a password

I can't think of any easy way to sync the user credentials of a Mac server with eDirectory. The best I can think of is a little insecure, which is to create a text file (say pw.txt) with the name and password in it:

MacName
MacPassword
<CR/LF character>

and then try something like:

MAP M:="\\Macminiserver\Mac Jobs in Progress\Printers Site Fulfillment" < pw.txt

pw.txt would I think have to be in the server's sys:public dir.

Andrew C Taubman (Sorry, support is not provided via e-mail) Opinions expressed above are not necessarily those of Micro Focus.
0 Likes
Highlighted
Knowledge Partner
Knowledge Partner

Re: Login Script Map to a drive with a password

On 17/11/2010 02:06, ataubman wrote:

> I can't think of any easy way to sync the user credentials of a Mac
> server with eDirectory.


IDM but that's a bit heavyweight for this. Or alternatively hook the
Mac OS X Server into eDirectory but again probably sledgehammer to crack
a nut!

> The best I can think of is a little insecure,
> which is to create a text file (say pw.txt) with the name and password
> in it:
>
>> MacName
>> MacPassword
>> <CR/LF character>
>>

> and then try something like:
>
> MAP M:="\\Macminiserver\Mac Jobs in Progress\Printers Site Fulfillment"
> < pw.txt
>
> pw.txt would I think have to be in the server's sys:public dir.


Since you're presumably accessing a CIFS/SMB share you may need to use
NET USE:

NET USE M: "\\Macminiserver\Mac Jobs in Progress\Printers Site
Fulfillment" * /USER:username < pw.txt

where pw.txt this time contains just the password with a blank line after.

HTH.
--
Simon
Novell Knowledge Partner (NKP)

------------------------------------------------------------------------
Do you work with Novell technologies at a university, college or school?
If so, your campus could benefit from joining the Novell Technology
Transfer Partners (TTP) group. See www.novell.com/ttp for more details.
------------------------------------------------------------------------
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.