LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-17-2009, 08:18 AM   #1
nandanm1
Member
 
Registered: Apr 2009
Posts: 61
Blog Entries: 1

Rep: Reputation: 15
Newbie on linux - CentOS 5.2


Hi All,

I am a newbie on Linux platform and have installed CentOS 5.2(Server) on one of my machines and have installed and configured samba Version 3.0.33-3.7.el5.

I am able to bring an WIN XP Professional machine on to my SAMBA - CentOS release 5.2 (Final) domain.

I am not sure how to do the same on Linux clients (which are installed with Fedora and CentOS operating systems).

I am trying to make this as my PDC (Primary Domain Controller) kindly provide me the links where I can refer to and go ahead and accomplish this task.

I would require this mainly for authentication purpose of both windows and Linux (Fedora) clients.

Thank you all in advance.
 
Old 04-17-2009, 09:49 AM   #2
slimm609
Member
 
Registered: May 2007
Location: Chas, SC
Distribution: slackware, gentoo, fedora, LFS, sidewinder G2, solaris, FreeBSD, RHEL, SUSE, Backtrack
Posts: 430

Rep: Reputation: 67
Please only post in one section

http://www.linuxquestions.org/questi...os-5.2-719834/

http://www.linuxquestions.org/questi...os-5.2-719833/

posting 3 times is not going to get your question answered faster. it will only get you talked to about it.

for setting it up like stated above you need to setup ldap on linux.
http://www.steve-lacey.com/blogarchi...s_a_wind.shtml
is just one quick howto from searching google
 
Old 04-17-2009, 02:03 PM   #3
nandanm1
Member
 
Registered: Apr 2009
Posts: 61

Original Poster
Blog Entries: 1

Rep: Reputation: 15
Newbie on linux - CentOS 5.2

I would like to know how to go join a Linux machine to the same domain.

Could you please provide me more information on setting up ldap along with Samba on CentOS 5.2?
 
Old 04-17-2009, 05:38 PM   #4
nandanm1
Member
 
Registered: Apr 2009
Posts: 61

Original Poster
Blog Entries: 1

Rep: Reputation: 15
Ldap on Centos 5.2

Hi All,

I have now installed and configured ldap on Centos 5.2 machine but I am not able login from using the ldap username and password from a centos client.

I am not very sure where to start debugging this issue. Could someone please help!

I have attached the file where I have mentioned the steps I followed while configuring ldap on Cento 5.2 (as per http://www.howtoforge.com/linux_open..._server_client)

Could some one please take a look at the attachment and help me out in debugging the same.

Thank you in advance.
Attached Files
File Type: txt Steps taken to configure LDAP on Centos.txt (3.8 KB, 14 views)
 
Old 04-20-2009, 09:05 AM   #5
nandanm1
Member
 
Registered: Apr 2009
Posts: 61

Original Poster
Blog Entries: 1

Rep: Reputation: 15
I tried even this ldapsearch -x -b 'dc=adminmart,dc=com' '(objectclass=*)' and the result was

# extended LDIF
#
# LDAPv3
# base with scope subtree
# filter: (objectclass=*)
# requesting: ALL
#

# search result
search: 2
result: 32 No such object

I have also tried using the tcpdump -n tcp port ldap and I was able to get a reply as mentioned below but I am not able to login from my client machine using the ldapuser accounts.

tcpdump -n tcp port ldap command on client resulted in

19:37:03.947093 IP 192.168.1.2.ldap > 192.168.1.3.33488: P 29:43(14) ack 247 win 215
19:37:03.986262 IP 192.168.1.3.33488 > 192.168.1.2.ldap: . ack 43 win 183


Could you help me out.

Thank you in advance.
 
Old 04-20-2009, 09:12 AM   #6
nandanm1
Member
 
Registered: Apr 2009
Posts: 61

Original Poster
Blog Entries: 1

Rep: Reputation: 15
IP 192.168.1.2 Refers to my ldap server
IP 192.168.1.3 refers to my client
 
Old 04-20-2009, 09:33 PM   #7
harry_uk
Member
 
Registered: Mar 2009
Posts: 36

Rep: Reputation: 16
I run centos 5 like you, and just finished samba+ldap+centos

I have even added xp clients successfully. Im stuck with adding vista clients so opened a seperate thread for that.

I can help you upto adding xp successfully.

I have not done adding linux users..

My advice to you:

1) Dont enable TLS right in the begenning.... Disable TLS,Iptables and selinux in the begenning... Introduce them only when the functionality is working

2) There is a bug in PAM in RHEL 5 and obviously cent os 5.

3) edit the /etc/pam.d/service-auth-ac file and somewhere it will say >=500, that line has to be changed to >0 or >100 cos it says if uid >=500 then quiet(means accept)... If you have lower uid's authentication will not happen.

Similarly you have to change in the account line to > 0 , so as to make everything work.

4) Change the /etc/ldap.conf and /etc/openldap/ldap.conf file to change bing policy from hard to soft.(this saves your ass)

5) Bring me here the /var/log/samba/log.<machinename>

The machine im talking about is the machine that you wanna join.. Only then people here can help.

6) If you get any info on joining vista please help me dude
 
Old 04-21-2009, 12:02 PM   #8
nandanm1
Member
 
Registered: Apr 2009
Posts: 61

Original Poster
Blog Entries: 1

Rep: Reputation: 15
Thanks for the help harry.

I just did the whole thing again referring to
http://www.linuxhomenetworking.com/w...DAP_and_RADIUS

and it worked.

Yeah, even my next target is Vista.

If I get any info on joining vista shall post the same.
 
  


Reply



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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Newbie on linux - CentOS 5.2 nandanm1 Linux - General 2 04-17-2009 12:48 PM
Newbie on linux - CentOS 5.2 nandanm1 LinuxQuestions.org Member Intro 2 04-17-2009 12:20 PM
Newbie on linux - CentOS 5.2 nandanm1 Linux - Newbie 1 04-17-2009 10:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:56 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration