Re: Problem with java-package.

2005-09-20 Thread Jeroen van Wolffelaar
On Tue, Sep 20, 2005 at 05:13:25AM +0200, Ole Christian Rynning wrote: > I assure you, you are wrong! Just check the straces will you ;-) > > Besides i did create a perl script and test your theory as that was my > first suspicion... > > The problem is definately caused by slapd. > > The real qu

Re: Problem with java-package.

2005-09-19 Thread Ole Christian Rynning
I assure you, you are wrong! Just check the straces will you ;-) Besides i did create a perl script and test your theory as that was my first suspicion... The problem is definately caused by slapd. The real question is why does java check with LDAP first when no other apps do that by default (an

Re: Problem with java-package.

2005-09-19 Thread Jeroen van Wolffelaar
On Tue, Sep 20, 2005 at 12:51:43AM +0200, Jeroen van Wolffelaar wrote: > To be honest, I wouldn't know how to most easily invoke gethostname(2) from > the command-line to test... Well, try 'getent hosts foo.example.com', both as root and non-root. getent is part of libc6, and is the userland tool

Re: Problem with java-package.

2005-09-19 Thread Jeroen van Wolffelaar
On Tue, Sep 20, 2005 at 12:31:07AM +0200, Ole Christian Rynning wrote: > Update: > > It seems slapd (openldap) was to blaim. > > as you can see from the stacktraces > http://foo.mu/mongo.out (root) > http://foo.mu/mongo2.out (non-root) > > they both try port 389 (ldap) first. > As non-root, it'l

Re: Problem with java-package.

2005-09-19 Thread Ole Christian Rynning
Update: It seems slapd (openldap) was to blaim. as you can see from the stacktraces http://foo.mu/mongo.out (root) http://foo.mu/mongo2.out (non-root) they both try port 389 (ldap) first. As non-root, it'll fall back on port #53. The weird thing is: [EMAIL PROTECTED]:~# grep hosts /etc/nsswitch

Problem with java-package.

2005-09-19 Thread Ole Christian Rynning
I don't know where to direct this problem in fact, google gives me nothing of value. Nor do I know what cause it. InetAddress won't resolve hostnames as root. => UnknownHostExceptions and MessageExceptions && so on. Is this a *security feature*? I wan't to be able to run java as root in a developm