new idea ENGINEERING         Home  | Products  | Services  | Newsletter  | Resources  | About Us | Contact Info | Privacy Policy        

  Specializing in Enterprise Search since 1996 - including FAST, Autonomy IDOL, K2, and Ultraseek, OmniFind and Lucene

Locator: NIE Home / Publications / Enterprise Search Newsletter / Volume 2 Number 7 / Ask Doctor Search

Not a subscriber? Sign up at http://www.ideaeng.com/subscribe.html

Ask Doctor Search: Forgotten Password in K2 Console

Volume 2 Number 7 - July/August 2005

This month's question comes from a customer who is using K2 in an enterprise search application.

Question: We removed the Windows domain user name that had been managing the K2 console and now we cannot access the console. How can I reset the password without reinstalling K2?

Dr. Search answers: Actually, Dr. Search has had the same thing happen to him at a customer site, and luckily it's not too difficult. We won't even mention the logic of creating multiple user names in the K2 console.

First, you need to stop K2. If you're on Windows, that means stopping all of the K2 services. On Unix, you'll need to scan the output of the ps command to find all of the K2 processes.

Once K2 has stopped, you need to remove the cstore.psm file from the ticket server directory. For example, if your ticket server is named test_ticket1 you would find the cstore.psm file in:

	verity/data/services/test_ticket1/cstore.psm
Note some people might advise you copy or rename the file just in case you decide you need it back.

Re-start K2, and log in using the command line tool rctk to connect to the ticket server, by default on port 9910: Once it has started, use the ainit command; log in using a null user name and password; and issue the g command to enter a new administrative user name and password. The human input is in bold.

	D:\rctk -server myserver.domain.com -port 9910
	rctk>ainit
	User:  newuser
	Password: newpass
	Domain (optional): [Enter]
	Login as Admin (y/n): y
	rctk> quit
	
Note that the username and password need to exist and be valid in the domain or in the LDAP server you are using.

You should find a new cstore.psm file in the ticket server directory; and you should now be able to log into the K2 console using the new username and password. Just to be sure, you might want to start rctk once again and use the g command to get the list of administrative data:

	D:\rctk -server myserver.domain.com -port 9910
	rctk> login
	User: newuser
	Password: newpass
	Domain (optional):[Enter]
	Login as Admin (y/n): y
	rctk> g
	Admin Id          : Administrator
	Admin Data        : Administrator
	Admin AccessLevel : 1
	rckt> quit
	
That's about it! You have a new user name and password, and you're ready to go!

Dr. Search will be back next month. Let him answer your questions for you.


Home  | Products  | Services  | Newsletter  | Resources  | About Us  | Contact Info  | Privacy Policy
Copyright New Idea Engineering, Inc 1996 - 2008