[JBoss-user] [Security JAAS/JBoss] - Adding roles to user on the fly

2006-03-08 Thread osganian
I have JBoss 4.0.3. I have a logged in user and I wish to add roles to them on the fly (say the user registers for additional services). I'm using the DatabaseServerLoginModule and I update my corresponding UserRoles table to add in the new roles but I don't want to have my user logout and

[JBoss-user] [Security JAAS/JBoss] - Autologin

2006-02-10 Thread osganian
Has anybody been able to get an autologin feature to work? I'm using FORM based authenication and I have a couple of problems. First, I can only supply a j_username and j_password field in my form that posts to j_security_check. If I include any other fields (like a checkbox for autologin

[JBoss-user] [EJB 3.0] - SecondaryTable problem

2006-01-27 Thread osganian
Hi I'm using JBoss 4.0.3SP1 and I have an entity bean that stores its data in 2 tables that are joined by an id. My class looks like: | @Entity(access=AccessType.PROPERTY) | @Table(name=users1) | @SecondaryTable(name=users2, | [EMAIL PROTECTED](name=id, |

[JBoss-user] [Security JAAS/JBoss] - Re: Password Encryption with DatabaseLoginModule

2006-01-26 Thread osganian
mjdinsmore, were you ever able to solve this? I have the same situation where the passwords are stored in the database encrypted and there isn't a way to decrypt them. I basically just want to compare the encrypted input password with the encrypted password stored in the database. Did you

[JBoss-user] [Security JAAS/JBoss] - Re: Password Encryption with DatabaseLoginModule

2006-01-26 Thread osganian
Got it, you have to specify the hashStorePassword to false and hashUserPassword to true. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3919842#3919842 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3919842

[JBoss-user] [EJB 3.0] - How to inject an EntityManager?

2006-01-26 Thread osganian
Hi I'm using JBoss 4.0.3SP1 (installed using installer and selecting the EJB3 configuration) and I am unable to figure out how to get an EJB3 EntityManager injected into my code. persistence.xml: | entity-manager | namemyEM/name |

[JBoss-user] [EJB 3.0] - Re: How to inject an EntityManager?

2006-01-26 Thread osganian
Thanks for the reply. So what are my choices? Do I have to create an InitialContext and look up the EntityManager via JNDI? I tried and I get an InjectedEntityManager back which throws an exception if I try and get the Transaction from it. If I don't begin a transaction I get an

[JBoss-user] [EJB 3.0] - Re: How to inject an EntityManager?

2006-01-26 Thread osganian
I don't know, do I want an ExtendedEntityManager to do this? Basically, what is the perferred way to obtaining an EntityManager in a POJO running within JBoss? Doing: | InitialContext ctx = new InitialContext(); | EntityManager em = (EntityManager)

[JBoss-user] [Beginners Corner] - Re: How do I generate a Java thread dump?

2005-06-03 Thread osganian
I'm experiencing the same problem. I'm running JBoss 3.2.7 on a Fedora Core 3 Linux box. I also have JBoss started up as a service. I send both kill -3 or kill -QUIT to the JBoss process id and nothing happens. Anybody have any idea what's up with that? View the original post :

[JBoss-user] [Installation Configuration] - server.log being truncated on Linux

2005-05-24 Thread osganian
Hi, I'm using JBoss 3.2.7 on Linux and when I boot up a server.log file is created and about the time its done loading JBoss, the file is truncated and its size is zero. What is up with that? I lose all of the log messages. Interesting if I let it run a while and return I have a bunch of

[JBoss-user] [Messaging, JMS JBossMQ] - Cannot connect to DLQ when users/roles are defined in an LDA

2005-05-23 Thread osganian
I'm having trouble connect to the default DLQ when my users and roles are defined in an LDAP server. What am I missing here? In my LDAP server I have the following guest user and role (the unencrypted password value is 'guest'): # Temporary guest role and user. dn:

[JBoss-user] [Messaging, JMS JBossMQ] - Re: Cannot connect to DLQ when users/roles are defined in an

2005-05-23 Thread osganian
Turning tracing on and switching the unauthenticatedIdentity from guest to another user in the system I see this: | ... | 2005-05-23 15:27:21,467 TRACE [org.jboss.mq.security.SecurityManager] Checking authorize on subjectInfo: SubjectInfo {subject=Subject: | Principal: myuser |

[JBoss-user] [Messaging, JMS JBossMQ] - Transaction is not active for commit (3.2.6)

2005-05-04 Thread osganian
Hi, I have 2 JBoss instances running. One is hosting my topic and JMS stuff. The other is trying to publish a message to that topic. If I set it up so that there is a durable subscription on that topic then I get the following error on my TopicSession.commit() call: | Caused by:

[JBoss-user] [Security JAAS/JBoss] - Re: Problems getting JMS to authenicate using the LDAPLoginM

2005-04-29 Thread osganian
Ok, I've gotten further but not quite far enough. I was populating users in an LDIF and I didn't have the format correct for specifying encrypted base64 encoded passwords. Changed it to: | userPassword: blahblahblah | Where blahblahblah is an encrypted base64 encoded password. All

[JBoss-user] [Security JAAS/JBoss] - Re: Problems getting JMS to authenicate using the LDAPLoginM

2005-04-29 Thread osganian
Seems like I'm picking this apart. Ok, got it to start up without any errors. Had a misprint in a jboss-service.xml file. However still there is a problem. Since I'm using the JDBCStateManager when i try to actually use the topic, I get the following error: | Cannot get a client ID; -

[JBoss-user] [Security JAAS/JBoss] - Re: Problems getting JMS to authenicate using the LDAPLoginM

2005-04-27 Thread osganian
Does anybody know if this can be done? I'm looking around and it looks like I would need a LDAPStateManager that would know how to retrieve the information contained in the JMS_USERS, JMS_ROLES, and JMS_SUBSCRIPTIONS tables (when comparing to the JDBCStateManager). Is that true? It would be

[JBoss-user] [Messaging, JMS JBossMQ] - Setting properties on a Message

2004-12-20 Thread osganian
Hi, I want to (in my MDB) to set some properties on incoming messages. It appears that all messages are read only. So after making them writable by copying the properties, clearing the properties, then resetting the original properties plus the properties that I want to set. After that if

[JBoss-user] [Management, JMX/JBoss] - Finding the MBeanServer outside JBoss's VM

2004-10-01 Thread osganian
Is it possible to find the MBeanServer running inside JBoss's VM from a Java process running outside JBoss's VM? I would like my unit tests to be able to lookup MBeans and invoke methods on them but when I try to find the MBeanServer (by calling findMBeanServer(null)) I get an empty list.

[JBoss-user] [Security JAAS/JBoss] - Re: Authenicating users using LDAPLoginModule

2004-09-27 Thread osganian
So is my findings correct??? You cannot specify people in an LDAP server like cn=Bob Smith,ou=People,... when using the LDAPLoginModule provided by JBoss? All people must be specified as uid=bsmith,ou=People,...??? Basically, I would like to specify people in my LDAP server as cn=Bob

[JBoss-user] [Security JAAS/JBoss] - Re: Authenicating users using LDAPLoginModule

2004-09-24 Thread osganian
Thanks for the reply. If I'm reading it right does it mean that I cannot specify each person's DN using the common name (cn=...) but rather the username (uid=...)? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3849474#3849474 Reply to the post :

[JBoss-user] [Security JAAS/JBoss] - Authenicating users using LDAPLoginModule

2004-09-23 Thread osganian
Consider the following LDIF file: | ... | | dn: ou=Roles,o=MyOrg,dc=MyComp,dc=com | ou: Roles | objectClass: top | objectClass: organizationalUnit | | dn: ou=People,o=MyOrg,dc=MyComp,dc=com | ou: People | objectclass: top | objectclass: organizationalUnit | | #

[JBoss-user] [HTTPD, Servlets JSP] - Setting up an alias in Apache to a WAR file inside an EAR

2004-07-22 Thread osganian
Hi, I was wondering if anybody knows how to setup an alias to do this. I did the following, which works if I deploy a simple standalone WAR file: httpd.conf (apache): # Alias jsp to the JBoss's JSPs web archive. Alias /myjsps C:/jboss-3.2.5/server/default/deploy/simple.war This works so I can

[JBoss-user] [Security JAAS/JBoss] - createTopicConnection by using the default user identity

2004-07-12 Thread osganian
I have a Topic that defined some security roles for accessing like: ... ... In my code I want to be able to call: connectionFactory.createTopicConnection() [without any username/password arguments] to

[JBoss-user] [Messaging, JMS JBossMQ] - Error creating the dlq connection after upgrading to 3.2.5

2004-07-08 Thread osganian
I get the following exception: 2004-07-08 15:51:49,103 ERROR [org.jboss.ejb.plugins.jms.DLQHandler] Initialization failed DLQHandler javax.jms.JMSException: Error creating the dlq connection: XAConnectionFactory not bound at

[JBoss-user] [Messaging, JMS JBossMQ] - Re: JMS changes from 3.2.3 to 4.0DR2?

2004-02-09 Thread osganian
View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3820724#3820724 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3820724 So if I wanted a 'newer' 4.0 release I would have to get a nightly snapshot of HEAD? So that means I have

[JBoss-user] [Messaging, JMS JBossMQ] - Re: JMS changes from 3.2.3 to 4.0DR2?

2004-02-09 Thread osganian
View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3820729#3820729 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3820729 Didn't know I was getting an error, when I start up I get an MBeanException: Incomplete Deployment listing

[JBoss-user] [Messaging, JMS JBossMQ] - Re: JMS changes from 3.2.3 to 4.0DR2?

2004-02-09 Thread osganian
View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3820743#3820743 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3820743 Actually, I get the MBeanException: Incomplete Deployment listing without deploying any of my code.

[JBoss-user] [Datasource Configuration] - JBoss 4.0 and MySQL Configuration

2004-02-06 Thread osganian
View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3820430#3820430 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3820430 I'm having a problem configuring MySQL with JBoss 4.0. The same configuration that works for JBoss 3.2.3

[JBoss-user] [Datasource Configuration] - Re: JBoss 4.0 and MySQL Configuration

2004-02-06 Thread osganian
View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3820455#3820455 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3820455 Ok, I've gotten a little farther. I'm trying to get the JBoss JDO example to work with JBoss 4.0 against

[JBoss-user] [Datasource Configuration] - Re: JBoss 4.0 and MySQL Configuration

2004-02-06 Thread osganian
View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3820459#3820459 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3820459 From looking at the JBoss source code (for 4.0 DR2), the actual SQLException that is raised in the