For file based authentication in OWSM we will be using a md5encode utility. Those who follow the Oracle® Web Services Manager Quick Start Guide 10.1.3.1 for starting with OWSM will face some issues while trying to encode the password using md5encode utility in 10.1.3.3.
The issue is that the syntax for using md5encode has changed from 10.1.3.1 to 10.1.3.3.
After creating a text file and add a user name and password in the following format: user_name:password (Save as .htpassword file).Use md5encode operation to encode a password associated with a user to the specified password file.
Syntax (10.1.3.3)
htpasswdfile – Name of the file containing the user name and password
username – User name in the text file
Syntax(10.1.3.1)
>wsmadmin md5encode username password htpasswdfile
username – User name in the text file
password – Password assigned to the user
htpasswdfile – Name of the file containing the user name and password
Since I referred to the old tutorial I was faced with wrong syntax issue and to finally use the md5encode utility I had to manually edit the xml file(md5encoder.xml) which invokes the md5encode utility from wsadmin bat file.
From wsadmin bat file it calls the build file wsm.xml and target wsm.md5encode which is defined in md5encoder.xml.I hard coded the arguments in md5encoder.xml build file and executed it separately for generating the encoded .htpasswd file. I never had an idea that the syntax will change so much between 10.1.3.1 and 10.1.3.3. So always refer to the version specific tutorials for the correct syntax.
No comments:
Post a Comment