Thread: sqlplus hangs trying to connect if user (at O/S level) defined in LDAP

This question is not answered. Helpful answers available: 5. Correct answers available: 1.


Permlink Replies: 3 - Pages: 1 - Last Post: Sep 15, 2009 4:39 AM Last Post By: user4760610 Threads: [ Previous | Next ]
temporalarts

Posts: 30
Registered: 06/05/00
sqlplus hangs trying to connect if user (at O/S level) defined in LDAP
Posted: Jul 28, 2009 4:35 PM
 
Click to report abuse...   Click to reply to this thread Reply
I have an Oracle 9i (9.2.0.1.0) database running on an old RedHat 8 server.

I have workstations running Ubuntu 8.04 using Oracle Instant Client 11.1.0.7.0 for Linux 32-bit.

Users of the servers and the workstations are defined in an OpenLDAP database and authentication is configured to use LDAP. Only root is defined in the workstations local /etc/passwd.

User root and users defined in the workstation local /etc/password can run sqlplus and connect using either TNSNAMES or EZCONNECT just fine.

User only defined in LDAP hang when trying to run sqlplus. When run interactively, it hangs right after sqlplus asks for username and password.

The client sqlnet.ora has
...
NAMES.DIRECTORY_PATH = (TNSNAMES, EZCONNECT)
SQLNET.AUTHENTICATION_SERVICES = (NONE)
TRACE_LEVEL_CLIENT=16
...

I have tried variations of these (and other) parameters and gotten the same results.

Review of the cli_XXXXX.trc file indicates it is finding and correctly resolving the TNSNAMES or building the correct EZCONNECT name.

It seems to be hanging when trying to authenticate the user at the operating system level

Does anyone have any fixes, workarounds, what-have-you? Right now the only fix I can come up with is adding all the users to the workstations thus negating much of the benefit of having LDAP.

Thanks
R.Parr, RHCE, Temporal Arts
Toni Lazarin

Posts: 1,381
Registered: 06/12/04
Re: sqlplus hangs trying to connect if user (at O/S level) defined in LDAP
Posted: Jul 28, 2009 11:17 PM   in response to: temporalarts in response to: temporalarts
 
Click to report abuse...   Click to reply to this thread Reply
You could do
strace $ORACLE_HOME/bin/sqlplus -V 2>&1 |less
to see if anything interesting pops out.
Laurenz Albe

Posts: 427
Registered: 10/21/05
Re: sqlplus hangs trying to connect if user (at O/S level) defined in LDAP
Posted: Jul 29, 2009 1:15 AM   in response to: temporalarts in response to: temporalarts
 
Click to report abuse...   Click to reply to this thread Reply
The problem is that OpenLDAP is not supported by Oracle, so you're on your own with that problem.

The next thing I would try is to trace OpenLDAP (I'm sure there are some debugging options) to see
if it gets an LDAP request and what happens with it.

Also, concerning the hang: did you wait long enough?
If there is a network problem, it could be that you have to wait for a TCP timeout, which can take several minutes.
Then maybe you get an error, which might help you.

While the system is hanging, try running "netstat" to see if there are any connections in SYN_SENT status.
If a connection has that status for a longer time, something is probably not working, and there will be a timeout eventually.

Yours,
Laurenz Albe
user4760610

Posts: 1
Registered: 09/15/09
Re: sqlplus hangs trying to connect if user (at O/S level) defined in LDAP
Posted: Sep 15, 2009 4:39 AM   in response to: temporalarts in response to: temporalarts
 
Click to report abuse...   Click to reply to this thread Reply
Hi,

I have the same problem that started with Ubuntu 8.04 64bit Install,
User is here on Novell eDirectory.

One workaround was to have nscd running, which unfortunately
has 64bit problems on its own :-(

Yours,
Steffen
Legend
Guru Guru : 2500 - 1000000 pts
Expert Expert : 1000 - 2499 pts
Pro Pro : 500 - 999 pts
Journeyman Journeyman : 200 - 499 pts
Newbie Newbie : 0 - 199 pts
Oracle ACE Director
Oracle ACE Member
Oracle Employee ACE
Helpful Answer (5 pts)
Correct Answer (10 pts)

Point your RSS reader here for a feed of the latest messages in all forums