LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Newbie on linux - CentOS 5.2 (https://www.linuxquestions.org/questions/linux-server-73/newbie-on-linux-centos-5-2-a-719835/)

nandanm1 04-17-2009 08:18 AM

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.

slimm609 04-17-2009 09:49 AM

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

nandanm1 04-17-2009 02:03 PM

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?

nandanm1 04-17-2009 05:38 PM

Ldap on Centos 5.2
 
1 Attachment(s)
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.

nandanm1 04-20-2009 09:05 AM

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.

nandanm1 04-20-2009 09:12 AM

IP 192.168.1.2 Refers to my ldap server
IP 192.168.1.3 refers to my client

harry_uk 04-20-2009 09:33 PM

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

nandanm1 04-21-2009 12:02 PM

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.


All times are GMT -5. The time now is 03:06 PM.