LDAP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsDatabasesLDAP Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 21st, 2004, 10:47 PM
nitinjindal83 nitinjindal83 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 3 nitinjindal83 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question Ldap client on linux, with LDAP server on solaris

hi,

I am working on LDAP. I installed the Sun One Directory Server 5.2 on sparc solaris9 machine.
I am trying to set a LDAP client on a linux machine with redhat9 installed on it by selecting the LDAP option in user authentication menu.It is not able to setup as an ldap client. The usernames set on LDAP server are not working on this machine.I used the baseDN as "dc=ldaptest, dc=com". My
server's address is 192.168.123.10. Authentication is none. The servers configuration are given below.

I configured the server with following command
/usr/lib/ldap/idsconfig is config ldap client
I set the folliwing attribute values.
1 Domain to serve : ldaptest.com
2 Base DN to setup : dc=ldaptest,dc=com
3 Profile name to create : default
4 Default Server List : 192.168.123.10
5 Preferred Server List :
6 Default Search Scope : one
7 Credential Level : anonymous
8 Authentication Method :
9 Enable Follow Referrals : FALSE
10 iDS Time Limit :
11 iDS Size Limit :
12 Enable crypt password storage : FALSE
13 Service Auth Method pam_ldap :
14 Service Auth Method keyserv :
15 Service Auth Method passwd-cmd:
16 Search Time Limit : 30
17 Profile Time to Live : 43200
18 Bind Limit : 10
19 Service Search Descriptors Menu

Now when i configure another sparc solaris machine as an LDAP client with following command, it works.
#ldapclient manual \
> -a credentialLevel=anonymous \
> -a authenticationMethod=none \
> -a defaultSearchBase=dc=laptest,dc=com \
> -a domainName=ldaptest.com \
> -a followReferrals=false \
> -a defaultServerList=192.168.123.10

If you can help me, it will be great. Thnx in anticipation.


nitin
apstc

Reply With Quote
  #2  
Old June 28th, 2004, 09:16 PM
ldap4u's Avatar
ldap4u ldap4u is offline
Chris Larivee
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Location: Littleton, CO
Posts: 72 ldap4u User rank is Private First Class (20 - 50 Reputation Level)ldap4u User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 h 49 m 14 sec
Reputation Power: 10
Send a message via MSN to ldap4u
I would try:

1. Adding the ldap entry for the RH system in to LDAP.
2. Editing the /etc/ldap.conf file with your specifications
3. Edit the /etc/nsswitch.conf file.
4. Restart or SIGHUP th nscd (thought the SIGHUP can foul users in session).

Reply With Quote
  #3  
Old June 29th, 2004, 12:04 AM
nitinjindal83 nitinjindal83 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 3 nitinjindal83 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
hi

>1. Adding the ldap entry for the RH system in to LDAP.
Can you explain this point in more details

>2. Editing the /etc/ldap.conf file with your specifications
I edited the /etc/ldap.conf file, with following specifications
host 192.168.123.10
base dc=ldaptest, dc=com
binddn cn=proxyagent,ou=profile,dc=ldaptest,dc=com
rootbinddn cn=Directory manager,dc=ldaptest,dc=com
port 389
scope one
timelimit 30
bind_timelimit 10
pam_password clear
ssl no

>3. Edit the /etc/nsswitch.conf file.
/etc/nsswitch.conf was already edited, when I selected LDAP with /etc/sysconfig/authconfig

>4. Restart or SIGHUP th nscd (thought the SIGHUP can foul users in session).
Rebooted the computer

I have changed the server settings to include proxy. Server settings are
1 Domain to serve : ldaptest.com
2 Base DN to setup : dc=ldaptest,dc=com
3 Profile name to create : default
4 Default Server List : 192.168.123.10
5 Preferred Server List :
6 Default Search Scope : one
7 Credential Level : proxy
8 Authentication Method : simple
9 Enable Follow Referrals : FALSE
10 iDS Time Limit :
11 iDS Size Limit :
12 Enable crypt password storage : FALSE
13 Service Auth Method pam_ldap : pam_ldap:simple
14 Service Auth Method keyserv : keyserv:simple
15 Service Auth Method passwd-cmd: passwd-cmd:simple
16 Search Time Limit : 30
17 Profile Time to Live : 43200
18 Bind Limit : 10
19 Service Search Descriptors Menu

My problem remains as such. I still cannot login with an account on ldap server on to the linux client

Reply With Quote
  #4  
Old June 29th, 2004, 12:14 PM
ldap4u's Avatar
ldap4u ldap4u is offline
Chris Larivee
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Location: Littleton, CO
Posts: 72 ldap4u User rank is Private First Class (20 - 50 Reputation Level)ldap4u User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 h 49 m 14 sec
Reputation Power: 10
Send a message via MSN to ldap4u
To add the ldap entry I would just modify an existing ldap entry from another system - even a solaris system - to contain the linux machine's information.

One thing about your configuration you may want to change is the scope to sub - as you probably have the default DIT for LDAP authentication - meaning that your users are in the ou=People branch of dc=ldaptest,dc=com. A scope of one at a search base of dc=ldaptest,dc=com will not look deep enough in the tree to process authentication.

Reply With Quote
  #5  
Old July 5th, 2004, 03:06 AM
nitinjindal83 nitinjindal83 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 3 nitinjindal83 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hey

I changed the scope to sub, but it did not help

nitin
apstc

Reply With Quote
  #6  
Old October 14th, 2004, 12:01 PM
ikhoury ikhoury is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Posts: 1 ikhoury User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Follow up question on ldap

I have a similar question, i was hoping you can point me to a how-to or some direction to get me started, I am trying to get Linux bind to OpenLdap.
Linux bind to Sun One 5.2

if you know of a How-to or have an hints, I only need the client setup side.
The reason I am researching this option is to get rid of ypbind and use ldap client to bind.


Appreciate it,

Ihab
Quote:
Originally Posted by nitinjindal83
hi,

I am working on LDAP. I installed the Sun One Directory Server 5.2 on sparc solaris9 machine.
I am trying to set a LDAP client on a linux machine with redhat9 installed on it by selecting the LDAP option in user authentication menu.It is not able to setup as an ldap client. The usernames set on LDAP server are not working on this machine.I used the baseDN as "dc=ldaptest, dc=com". My
server's address is 192.168.123.10. Authentication is none. The servers configuration are given below.

I configured the server with following command
/usr/lib/ldap/idsconfig is config ldap client
I set the folliwing attribute values.
1 Domain to serve : ldaptest.com
2 Base DN to setup : dc=ldaptest,dc=com
3 Profile name to create : default
4 Default Server List : 192.168.123.10
5 Preferred Server List :
6 Default Search Scope : one
7 Credential Level : anonymous
8 Authentication Method :
9 Enable Follow Referrals : FALSE
10 iDS Time Limit :
11 iDS Size Limit :
12 Enable crypt password storage : FALSE
13 Service Auth Method pam_ldap :
14 Service Auth Method keyserv :
15 Service Auth Method passwd-cmd:
16 Search Time Limit : 30
17 Profile Time to Live : 43200
18 Bind Limit : 10
19 Service Search Descriptors Menu

Now when i configure another sparc solaris machine as an LDAP client with following command, it works.
#ldapclient manual \
> -a credentialLevel=anonymous \
> -a authenticationMethod=none \
> -a defaultSearchBase=dc=laptest,dc=com \
> -a domainName=ldaptest.com \
> -a followReferrals=false \
> -a defaultServerList=192.168.123.10

If you can help me, it will be great. Thnx in anticipation.


nitin
apstc

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesLDAP Programming > Ldap client on linux, with LDAP server on solaris

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap