Solved

MF20.dsn user

Posted on 2011-03-01
16
1,890 Views
Last Modified: 2012-08-13
Hello,

Can someone tell me how to change the user that is stated in the MF20.dsn in citrix 4.5?
I have 10 servers that it needs to be changed on.

Thank you.
0
Comment
Question by:tfsaccount
  • 8
  • 8
16 Comments
 
LVL 36

Accepted Solution

by:
Carl Webster earned 500 total points
ID: 35009289
manually edit the dsn file

net stop imaservice
Dsmaint config /user:UserName /pwd:passwordforusername /dsn:"C:\Program Files\Citrix\Independent Management Architecture\mf20.dsn"
dsmaint -recreatelhc
net start imaservice
net start "Citrix SMA Service"
net start CitrixWMIService

Do that on all 10 servers.

0
 
LVL 1

Author Comment

by:tfsaccount
ID: 35009348
Can i do that on 1 server at a time? or do i have to do this on all the servers at the same time?
0
 
LVL 36

Expert Comment

by:Carl Webster
ID: 35009364
one server at a time is best.
0
 
LVL 1

Author Comment

by:tfsaccount
ID: 35009608
error:
Failed to connect to the data store. The settings will be reverted to the previo
us configuration.
Unable to change configuration settings.
Please verify parameters and data source.

I chaged the user name to the new username i want to use and that users password.
0
 
LVL 36

Expert Comment

by:Carl Webster
ID: 35009654
Does that user account have rights to the data store?
0
 
LVL 1

Author Comment

by:tfsaccount
ID: 35009668
The user has Domain Admin rights. But does that mean it has rights to the data store?
0
 
LVL 36

Expert Comment

by:Carl Webster
ID: 35009711
Nope, not at all.  You have the give the user the necessary rights to the data store.

http://support.citrix.com/proddocs/topic/xenapp5fp-w2k3/ps-datastore-ref-wrapper-v2.html
0
 
LVL 1

Author Comment

by:tfsaccount
ID: 35009811
hum... i am not seeing any information on that site you provided on how to give a user access to the datastore...
0
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 
LVL 36

Assisted Solution

by:Carl Webster
Carl Webster earned 500 total points
ID: 35009818
The user account for installing, upgrading, or applying hotfixes to the data store must have database owner (db_owner) rights to the database. When you finish installing the database with database owner rights, set the user permissions to read/write only. This increases the security of the database.

0
 
LVL 1

Author Closing Comment

by:tfsaccount
ID: 35010447
THank you. I have not tried it yet becaues i have users on all of my servers. But if i have any issues i'll be back.
0
 
LVL 36

Expert Comment

by:Carl Webster
ID: 35010521
You can do this while users are on the servers.  Just login yourself to the server, then disable logins so no new users can connect and then do this process.  The entire process should take less than 30 seconds maybe 1 minute at the max.
0
 
LVL 1

Author Comment

by:tfsaccount
ID: 35010597
When you say "manually edit the dsn file" do you mean... open the file in notepad and change the username and password? then run the commands?

also i think if i stop thoes services it will kick thoes users out....
0
 
LVL 36

Expert Comment

by:Carl Webster
ID: 35010742
Yes, use notepad and cahnge the username.  The password is not kept in the file.

Stopping those services will NOT kick the users out.  I did it on 10 servers last week that that "somehow" reverted to an older DSN file.  Each server had around 30 users and no one was kicked off and no one lost any work.

If you want to speed up the process even more, put all the commands in a batch file so you don't have to wait on your typing skills at the command line.
0
 
LVL 1

Author Comment

by:tfsaccount
ID: 35010865
I checked w/ our DBAdmin and he said the new user has full rights to the citrix database. I just gave it a try and it still gives me the error
error:
Failed to connect to the data store. The settings will be reverted to the previo
us configuration.

steps i took.
opened the mf20 file
changed the username to the new one: AdminCitrix
ran:net stop imaservice
ran:Dsmaint config /user:AdminCitrix /pwd:password /dsn:"C:\Program Files (x86)\Citrix\Independent Management Architecture\mf20.dsn"

erroed out.
Started services.
no users were kicked out.
0
 
LVL 36

Expert Comment

by:Carl Webster
ID: 35011358
Whenever I have run into this issue it has been either the username is wrong, the password is wrong or the path is wrong.
0
 
LVL 1

Author Comment

by:tfsaccount
ID: 35020968
Hello again,
IS there a way I can test this to make sure it worked? Just run the AMC and see if it works?
Not sure what was different from your script but this is what worked for me.

dsmaint config /user:DOMAIN\AdminCitrix /pwd:Password101 /dsn:"C:\Program Files (x86)\Citrix\Independent Management Architecture\mf20.dsn"
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

#Citrix #Citrix Netscaler #HTTP Compression #Load Balance
#CITRIX #XENDESKTOP #POC #Citrix Studio
How to install and configure Citrix XenApp 6.5 - Part 1. In this video tutorial we have explained step by step installation of Citrix XenApp 6.5 Server on Windows Server 2008 R2 is explained in this video. We have explained the difference between…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now