Monday, May 26, 2014

new local account in Windows 7


In a previous blog, I got kinit to work with ApacheDS. Now, I'm going to try to use the setup to kerberize a small Spring web application; however, before doing so I thought it might be wise to create a new local account for my web application. The account is called tomcat and to do this on Windows 7, the following was done:

Right click on the Start ->Computer item to invoke the context menu from which you should choose the Manage item (here Verwalten)



This will start the Computer Management application (here Computerverwaltung), which can be use to add local accounts and groups.



The home directory, which was create for the new user, tomcat.




>runas /user:tomcat cmd
Geben Sie das Kennwort für "tomcat" ein:

Es wird versucht, cmd als Benutzer "GFT6841\tomcat" zu starten...





To run kinit:

%JDK_HOME%\bin\kinit.exe" tomcat@EXAMPLE.COM secret

C:\Users\tomcat>"c:\Program Files\Java\jdk1.7.0_25\bin\klist" -c c:\Users\tomcat
\krb5_tomcat

Credentials cache: c:\Users\tomcat\krb5_tomcat

Default principal: tomcat@EXAMPLE.COM, 1 entry found.

[1]  Service Principal:  krbtgt/EXAMPLE.COM@EXAMPLE.COM
     Valid starting:  May 26,  2014 16:35

     Expires:         May 27,  2014 16:35






No comments:

Post a Comment