Re: can't start tomcat as user

2005-07-20 Thread Luis Durán
dummy wrote:
 Hi,
  
 Got problem starting Tomcat as user tomcat. No problem starting it under
 root. Any idea why ?
  
 
On Linux, only root can open ports below 1024 (included). You must
compile the jsvc program and setup a tomcat user and it will start
tomcat as root and then change the effective user before receiving
requests. I hope this help. (jsvc is in the bin folder, i think is
originally compressed)

-- 

Luis Edgardo Durán Lebis
Soporte Técnico y Sistemas
http://mipagina.cantv.net/elebis
[EMAIL PROTECTED]
0416-7580991


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat JNDI Realm + Active Directory Server

2005-07-19 Thread Luis Durán
I had a hard time trying to configure Tomcat to authenticate with MS
Active Directory Service, i tried a lot of samples, i edited them but i
didn't get nothing. This is the last configuration i tried:

/META-INF/context-xml:

?xml version=1.0 encoding=UTF-8?

Context path=/moretests
Realm className=org.apache.catalina.realm.JNDIRealm debug=99
connectionURL=ldap://192.168.200.2:389;
referrals=follow
userBase=cn=Users,dc=w2ksvr,dc=local
userSearch=(sAMAccountName={0})
userSubtree=true
userRoleName=memberOf
roleBase=cn=Users,dc=w2ksvr,dc=local
roleSearch=(sAMAccountName={0})
roleSubtree=true
rolename=cn /
/Context

I gave the shot to the bind mode and to the password comparison mode
with any results.

/WEB-INF/web.xml:

?xml version=1.0 encoding=UTF-8?

web-app xmlns=http://java.sun.com/xml/ns/j2ee;
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd;
 version=2.4
login-config
auth-methodBASIC/auth-method
realm-namemoretests/realm-name
/login-config
session-config
session-timeout
30
/session-timeout
/session-config
welcome-file-list
welcome-file
index.jsp
/welcome-file
/welcome-file-list
security-constraint
web-resource-collection
web-resource-namewhole site/web-resource-name
url-pattern/*/url-pattern
http-methodGET/http-method
/web-resource-collection
auth-constraint
role-nameprueba/role-name
/auth-constraint
/security-constraint
security-role
descriptionUsuario/description
role-nameprueba/role-name
/security-role
/web-app

Of course, i have created that group inside ADS and populated it with a
user called elebis with a simple password. I even browsed ADS with ldap
browser and everything seemed ok,

Does anybody know why am I doing wrong? Can anybody help me to work
around it?

Thanks in advanced, pals

-- 

Luis Edgardo Durán Lebis
Soporte Técnico y Sistemas
http://mipagina.cantv.net/elebis
[EMAIL PROTECTED]
0416-7580991


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: tomcat as service under linux how-to

2005-07-19 Thread Luis Durán
dummy wrote:
 Hi,
  
 I would like to know how to start-up tomcat as services under LINUX and at
 the same time start-up apache after tomcat has started.
 How to check whether tomcat is already started before apache is started ?
  
 I don't have this on windows system.
 
You could use netstat -tlp as root and see the ports where you have
configured tomcat on open (listening), you will see a java-* process
name too. This is one way, maybe not the best, but works.

-- 

Luis Edgardo Durán Lebis
Soporte Técnico y Sistemas
http://mipagina.cantv.net/elebis
[EMAIL PROTECTED]
0416-7580991


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]