Unix Technical Forum

Sun One Webserver 6.1 with openLDAP client auth crashes

This is a discussion on Sun One Webserver 6.1 with openLDAP client auth crashes within the Sun Solaris Administration forums, part of the Solaris Operating System category; --> Hi All! We are trying to implement openldap client auth at our network. The host that is running the ...


Go Back   Unix Technical Forum > Unix Operating Systems > Solaris Operating System > Sun Solaris Administration

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-16-2008, 10:47 AM
lmarton
 
Posts: n/a
Default Sun One Webserver 6.1 with openLDAP client auth crashes

Hi All!

We are trying to implement openldap client auth at our network. The
host that is running the webserver (Sun One Webserver 6.1) has to allow
users to log in (ftp, and http, some people even have console access).
The users are in AD. This is fine, the users can authenticate, ftp is
OK.

Our problems start were we have to RESTART the webserver while the
host is on ldap authentication. If the nsswitch and pam.config are set
for NIS authentication the webserver will restart with no problem. If
the host is on openldap auth then the webserver startup will crash.

Apparently the Webserver uses the native sun LDAP and the two libs
cannot coexist in the same process.

An ugly solution would be to create a script that watches the daemon,
and if its down, set the box on NIS auth, restart the http daemon and
switch back to openldap. It is ugly and I think it has to be a better
solution than this. Does anybody running Sun One Webserver with
openldap client libs? If yes - How did you do it?

Thanks in advance.

Lorand Marton

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-16-2008, 10:48 AM
lmarton
 
Posts: n/a
Default Re: Sun One Webserver 6.1 with openLDAP client auth crashes

Well it turns out there were multiple issues.

The Sun One webserver will load nss_ldap.so.1 from /usr/lib if it
finds that the box is on ldap authentication. Theres no way to change
this, it will allways load this library. The problem is that if this
library is not from the original sun LDAP stack during startup the
server will make a function call that is only available in the SUN
package, so if you had to replace that file with something else - in
our case the PADL/OpenLDAP package and nss_ldap library it will crash
during the startup process. However the rest of the system will need
the PADL nss_ldap for proper ssh, ftp authentication.

The solution that I implemented was to modify the server startup so
before it actualy starts the server the script makes a symlink to the
original sun nss_ldap, start the server, sleep 5 to let the services
load, and then restore the symlink to the PADL nss_ldap once the
iplanet server is running. The webserver wil stay alive and the user
authentication will not work for only those 5 seconds. It is not really
elegant but I couldnt find another way to circumvent this. Even if the
LD_LIBRARY_PATH for the webserver was totally modified it would pull
everything else from that LD_LIBRARY_PATH except that single file.

Hope this will help somebody out there that might have run into the
same problem.

Cheers:

Lorand Marton

www.sinvatech.com

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 05:02 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com