Implementing NTLM Example

325 byte By jconnect1a at 2007-9-30 0:06:46
We have to authenticate users in our windows environment before giving access to one of the web apps. I want to know fi there are any examples of how to implement NTLM so I could get the user credentials from their windows login and then use that to authenticate it within our app.Any examples ...

Using BouncyCastle in an Applet

398 byte By neil.slingera at 2007-9-30 0:07:08
I am trying to use RSA encryption in an Applet but am having a few issues.I have opted for the BouncyCastle provider. Is there any way that this can be used in an Applet that doesn't have BouncyCastle installed in their local Java installation. I heard somewhere that Java Extensions can be ...

i need help about kerberos in windows 2000

585 byte By i_hate_myselfa at 2007-9-30 0:16:26
hi, everybody. I practice security with JAAS, but i dont understand about kerberos machenism in windows 2000 very well. I dont know how to create realm, kdc or principal in kerberos; or to map principal to domain user. I i run JAAS tutorial in windows 2000 wordkstation, the jaasAnc.java, you ...

Is JAAS the right choice for me?

840 byte By mossopa at 2007-9-30 0:18:38
I'm trying to get my head around what JAAS is and if its the right thing for me to be using for an application I'm writing. Let me describe the situation:Its a client-server system. The client connects to the server and sends a username and password to authenticate itself. I want the server ...

Java Cryptography Extension

142 byte By The_Gripmastera at 2007-9-30 0:26:15
I need a web resource where I can master use of the cryptography packages. Especially MD5, SHA1, DES, 3DES and AES.Thanks a lot.

Shared authentication amongst apps

430 byte By wkuboa at 2007-9-30 0:42:13
We are using JAAS and a custom login module to authenticate users to our J2EE app. We are now required to share authentication with another J2EE app running on the same server (i.e. a user can go back and forth without having to re-authenticate). Is this even possible? We're running on Oracle ...

Real SSO through GSS, how?

522 byte By plandrewa at 2007-9-30 0:42:51
Hi,I implemented the example here http://www11.informatik.tu-muenchen.de/Java/j2sdkse/guide/security/jgss/single-signon.htmlfor Single Signon, but it requires that I supply the password for the user.What I want it to do is get the current logged in users credentials under which this program is ...

Do I need JCE to RSA-sign a hashed text

250 byte By gojnersa at 2007-9-30 0:42:57
Hi!I齧 going to:1. Take a short textstring and use some hashfunction like MD-5 or MD-4 to generate a hashed text and then2. Take the hashed text and sign that with RSA.My question is:Do I need JCE to do this?

Single sign-on for an Intranet with Windows 2000 server

590 byte By taner_ga at 2007-9-30 0:47:04
Hi,I want to implement SSO for an Intranet with Windows 2000 server.I manage to get Interenet Explorer to send me the SPNEGO token that contains the Kerberos token, I also now that it is Base64 encoded.When I decode it get the ASN.1 BLOB and this where I am stuck howe can I parse this to get ...

How to get certificate from crosscertificatepair.

464 byte By yukokuramaa at 2007-9-30 0:51:40
I set cross certificate between 2 CA completely. And now I have file that retrive from attribute "crosscertificatepair" in iPlanet Directory. I found that window can't read this file. I try to set this to X509certificate but java runtime report error. I check this file with program from IBM ...

Any TACACS+ JAAS Module?

274 byte By skeeter_xua at 2007-9-30 1:04:56
Hello experts,I am looking for TACACS+ JAAS module. Although I have been searching internet for several days, I cannot find a good open source solution. Somebody has such experience on TACACS+ protocol and its implementation in JAAS?Thanks,WenBin

Form Based Login

1072 byte By NoGeniusa at 2007-9-30 1:06:56
Hello Everyone !I've read lots of topics concerning the form based login. I tried the examples given and my own solutions, but it didn't work. I now used this but i always get an Internal server error 500. does anyone know what i might have forgotten ? I also changed the web.xml what do i ...

how to password protect external hard disk drives

463 byte By haromharaa at 2007-9-30 1:12:35
Hi All,I have purchased and external USB port hard disk. The problem with it is anyone just plug it to thier computers USB port and use it as we use our windows explorer to browse the filesystem. However whenever I plug to my computers USB port it should prompt me for a password and once ...

Problems with viewing Applet in HTML

368 byte By Amrun1a at 2007-9-30 1:13:43
Hi!I am trying to write a documentation on java security for school. I've taken some sample-code from the java tutorial (WriteFile - example) and it works when I'm executing the program with the appletviewer. But when I trie to view the applet in HTML I don't get an error, but the file ...

small sample using HttpsURLConnection

375 byte By elubina at 2007-9-30 1:17:12
Hi, I have successfully written a program that uses HttpURLConnection to talk to a server and send and receive data. Now I would like it to be able to call https pages. Does someone have a small sample?Does anyone have a small sample of using HttpsURLConnection to connect to a secure SSL server ...

Getting Message Digest from Signature?

468 byte By a_chasina at 2007-9-30 1:17:32
I'm developing an application that requires the use of a signed message digest, so I'm using the java.security.Signature class to create and sign the digest. I'd also like to be able to extract the unencrypted message digest from the Signature object, but there doesn't appear to be any ...

http authentication

362 byte By chanc61a at 2007-9-30 1:24:43
Hi,I have a file on the http server that's protected by a username and password. So, when I try to access the file by typing the URL, it prompts me for a username and a password. I want to access this file in my java application. How would I go about doing this? What classes would be useful? A ...

Need Help for role based authentication

445 byte By magg99a at 2007-9-30 1:28:11
Hi,I am creating a web application which will run on Linux-apache using jsp and oracle as database.This web application will show information about customers.I want to create role based authentication, which has read only access for cuatomers so they can seeonly there data, users having ...

Problems with RSA encryption

861 byte By a_chasina at 2007-9-30 1:32:47
I'm new to the JCE, so this may be a silly question, but I've created a public/private RSA keypair using the keytool and I'm trying to encrypt a block of data using the RSA cipher obtained by callingCipher cipher = Cipher.getInstance("RSA", provider); // provider is the IBM JCE ...

Kerberos, JAAS, Active Directory, Windows 2003

3857 byte By cmsrkchallaa at 2007-9-30 1:33:20
Hello,I am trying to get Authentice a user using Kerberos, JAAS on a Windows 2003 Server with Active Directory. Here is what I have tried so far.Kerberos config file contents[libdefaults]default_realm = corp.citistreet.orgdefault_checksum = rsa-md5[realms]corp.citistreet.org = {kdc = ...

Portability of client certificates

613 byte By macsharksga at 2007-9-30 1:38:36
Hi,I have created a client certificate (client.cer) for mutual authentication using keytool in linux. This client certificate will be stored at where the client application resides. Is client.cer portable? Can it be exported to a different platform eg. Windows, where the client application uses ...

Kerberos, LDAP, Active Directory authentication on Win 2003

13878 byte By cmsrkchallaa at 2007-9-30 1:52:52
I am trying to use GSSAPI mode of authentication and connect to Active Directory running on a Win 2003 server and in the process I am getting following error. Kerberos token is getting created correctly atleast as per the log messages but later getting an error that credential are not being ...

password for default cacerts keystore with java sdk

330 byte By saurabh_guptaa at 2007-9-30 1:58:30
C:\perseus>keytool -list -keystore C:\jdk1.3.1_08\jre\lib\security\cacertsEnter keystore password: ?keytool error: java.io.IOException: Keystore was tampered with, or password was incorrectCan someone tell me what is the default password for this.I just wished to see the certificates ...

Converting from String to BigInteger to byte Array?

1980 byte By catz423a at 2007-9-30 2:05:33
I am trying to convert a string s1 into a byteArray and then into a BigInteger and then do the process in reverse to get the same string back as s2. Can someone please help me with this? I am not getting the same string back for some reason.import java.io.*;import java.net.*;import java.math.*; ...

SPNEGO Token deconding for Kerberos5 Ticket -> GSS authentication

1420 byte By dculverwella at 2007-9-30 2:17:57
Does any one know what may be the problem here ?I am receiving a SPNEGO token from Windows 2000 through IIS (Starts with Negotiate)The I am decoding it as follows byte[] spnego = spnegoString.getBytes();byte[] gss = new String(spnego).substring(66).getBytes();GSSManager manager = ...

Java Keystore

141 byte By David0603a at 2007-9-30 2:19:16
Hi,How secure is using a java keystore to store private keys. Does it depend on the strength of the password? Thanks in advance

JRE and browser cert store access/use

1963 byte By rajudatara at 2007-9-30 2:21:42
We have web pages that are protected by the SiteMinder Agent. The user is required to present a certificate and also a password to access the web pages (basic + certificate authentication). Once the access is granted based on the authorization, a web page is loaded that runs an applet (in the ...

KeyStore, how does it work?

892 byte By JAKE142 at 2007-9-30 2:31:38
I'am making an application that stores data in mysql db. The information to be stored is sensitive and need to be kept secure. I use mysqls AES crypto, but what can I do about the key? There will be several users on the db and they all need access to the data wich means I can only use one ...

Kerberos and JDBC

1431 byte By andreas_developer at 2007-9-30 2:37:18
This is a cross-post - I'm sorry but they didn't seem to know in the JDBC forum.Hi,We're trying to design a somewhat secure way to connect to our database. I've heard that there should be possible to use Kerberos for database login(?).Today we authorize the system user by using Kerberos and ...

java.policy problems

1249 byte By navaneethg at 2007-9-30 2:39:51
I've an applet that makes a JNI call to a windows dll. In the java.policy file, I've the URL requesting the permissions and it looks like this :grant codeBase "https://hostname/classes/*" { permission java.io.FilePermission "data.dll", "read"; permission java.lang.RuntimePermission ...

Pass secure information between two apps

363 byte By wkubo at 2007-9-30 2:40:58
I need to pass a username between two separate J2EE apps running on the same server. Its important that the client is not able to modify this parameter. What is the best way to share this information? An encrypted cookie, encrypted request parameter? Basically one application sets the ...

Encryption & Decryption Problem with "JDK default" provider

4334 byte By hcsatish at 2007-9-30 2:43:22
<bold>The below code throws the following exceptionException in thread "main" java.lang.NullPointerExceptionat EncryptionProblem.crypt(EncryptionProblem.java:85)at EncryptionProblem.<init>(EncryptionProblem.java:37)at EncryptionProblem.main(EncryptionProblem.java:16) But runs fine ...

RSA padding problem

1417 byte By David0603 at 2007-9-30 2:45:27
Hi, I am trying to encrypt a symmetric key with a public key and then store the result in a database. This works fine but when I read the ciphertext from the database and try to decrypt the key with the corresponding private key I get a padding exception. I also encode the cipher text base64 ...

Problem with AIX 5.1 JDK1.4 WLS 8.1.2

15798 byte By outraspace at 2007-9-30 2:53:43
I am getting "No LoginModules configured " after upgrading to WLS 8. My application can work under WLS 7 (AIX and NT) and WLS 8 ( NT only ). I have tried to force my own security policy but it still does not work. Attached with this email are all the related config files. When using a sample ...

session timeouts for login page with in a html frame

617 byte By naeem_asghar at 2007-9-30 2:54:57
Hi, i have a login page which when the session times out gets redisplayed within the frame of the html page where the session timed out , i have tried setting the session timeouts to be less than the other application so that the login page will timeout before the documentum application but ...

Retroguard Help

1380 byte By tiners506 at 2007-9-30 2:57:00
I am looking to use RetroGuard as an obfuscator for some code that I am writing. I went to retrologic.com and downloaded the latest version, along with the documentation that goes with it. I do not understand how to install it? Heres the instructions :::: 2. Installing RetroGuardRetroGuard is ...

creating user authentication using ssl

786 byte By venu_datla at 2007-9-30 2:58:46
hii am new to security and i want to create a website where users can login securely. I mean i want to send passwords when users login to server using ssl and then check the passwords against a jdbc database.i want to use jsp for building my web interface. I am currently using j2ee 1.4 ...

TomCat

1186 byte By JPJ2004 at 2007-9-30 3:08:02
Hi,having an issue setting up a simple deployment descriptor for Tomcat 3.1. The following entries added in WEB.XML for my ...

JAAS jsp page CallbackHandler

277 byte By madeinstein at 2007-9-30 3:15:54
I'm implementing custom Login Module and I have to create a CallbackHandler that will get all the information from the jsp page. Does anyone knows what's the best way to do this? What type of CallbackHandler should I use? and how to implement this?Thanks

Accessing client printer

415 byte By Marcelo.De.Andrea at 2007-9-30 3:19:29
Hi all,I need to print text in the client's printer, directly on LPT1. I know that I should have permissions to do that, but I dont know how to set up those permissions in the client's machine.I developed an html page with an embedded applet which tries to print but it throws ...

Digital Certificates and signing

297 byte By joseph.lebanon at 2007-9-30 3:22:06
i am developping a security application that needs to access the web client certificate store to enable him once he choose to submit his form to select which cetificate to sign with; i need to know how to access in java the certificate store on the cient machine.thanks

Identifying an imposter JVM

632 byte By ToddTillinghast at 2007-9-30 3:27:14
Alot of Java security focuses on protecting the party operating the computer that is running the JVM from threats. When it comes to running a client Java application it is difficult to protect the application and content it holds from the party operating the computer and JVM.I need to be able ...

New to SSL

224 byte By Ljosika at 2007-9-30 3:31:43
Hello,I'm new to SSL.From what could I start using SSL?In our system we have JDBC layer for connecting DB. How to organize secure connection to DB? Best Regards,Ljosika

Configuring basic authentication in Jboss - java.lang.SecurityException

1865 byte By anandkasi at 2007-9-30 3:43:08
Hi All, I am a jboss newbie and need to a simple username/password challenge to pop up when someone accesses my web app deployed on jboss. I was looking at UsersRolesLoginModule. I am using jboss-3.2.3 with jetty-4.2.14. All I did was the following 3 things. 1) ...

Single sign On with JAAS

1339 byte By Rashmi_Tambe at 2007-9-30 3:44:02
Has anybody ever implemented single on using JAAS? I refered to this article ( http://www.devx.com/Java/Article/7865/0/page/1 )on devx. For supporting single sign on it uses an option, 'Shared state ' map in login config file. this options isused for passing user security information between ...

Using LoginModule with applets

219 byte By madeinstein at 2007-9-30 3:44:34
Is there a way to include .java.login.config file within the applet.I've got a sign applet but I still need a LoginModule configuration file to be able to use LoginModule within the applet.

KeyStore Algorithm & Cipher Algorithm

778 byte By hcsatish at 2007-9-30 3:49:28
Hi,Generated the KeyStore using the keytool using Default KeyStrore Type & KeyStore = User, Password=password With keystore am able to retrieve the both Private & Public Keys by making use of KeyStore.getDefaultType())When i tried 2 encrypt the message using the params Cipher, ...

Communicating with HTTPS server with Client Authentication

1819 byte By shankar_jcp at 2007-9-30 3:57:15
Hi,I need to do a Client Authentication with the server running on HTTPS (from a Java code).First, I thought of connecting and reading to a HTTPS server and try Client Authentication later.I failed in the first step itself. I could not connect to https://mail.yahoo.com . It throws an the ...

pki question

378 byte By subir at 2007-9-30 4:00:01
I have an application which used my self signed CA, e.g. CA0.We now going to have new external CA, e.g. CA1 has no relation to CA0.Do I need new certificates for existing users of CA0 ?If not, how would the users of CA0, would get validated by CA1 ?Do I need a certification path to be ...

How to get OSUser?

70 byte By jdkirby at 2007-9-30 4:00:55
Does anyone know the method for getting the OSUser name?