Expiring Today—Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

How to install Samba+LDAP as PDC on CentOS 5.5

Posted on 2011-02-14
18
Medium Priority
?
2,135 Views
Last Modified: 2012-05-11
How to install Samba+LDAP as PDC on CentOS 5.5 ??
0
Comment
Question by:david875
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 9
  • 8
18 Comments
 

Author Comment

by:david875
ID: 34892297
[root@localhost openldap]# rpm -i smbldap-tools-0.9.1-1.2.el5.rf.noarch.rpm
warning: smbldap-tools-0.9.1-1.2.el5.rf.noarch.rpm: Header V3 DSA signature: NOKEY, key ID 6b8d79e6
error: Failed dependencies:
        perl(Crypt::SmbHash) is needed by smbldap-tools-0.9.1-1.2.el5.rf.noarch
        perl-ldap is needed by smbldap-tools-0.9.1-1.2.el5.rf.noarch
[root@localhost openldap]#
0
 

Author Comment

by:david875
ID: 34892843
I fixed the problem of perl(Crypt::SmbHash), now i'm trying to fix the problem of perl-ldap
0
Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

 
LVL 79

Expert Comment

by:arnold
ID: 34892897
Did you use the yum update, yum install <list of tools from the first link I included in the first comment>?

yum will include the dependencies if any during the install.
0
 

Author Comment

by:david875
ID: 34892963
I did :) I have the latest update but i need that rpm now "perl-ldap" i tried many and didnt work
0
 

Author Comment

by:david875
ID: 34893244
[root@localhost RPMS]# rpm -qa | grep openldap
openldap-clients-2.3.43-12.el5_5.3
openldap-servers-2.3.43-12.el5_5.3
openldap-2.3.43-12.el5_5.3
[root@localhost RPMS]# rpm -qa | grep samba
samba-client-3.0.33-3.29.el5_5.1
samba-common-3.0.33-3.29.el5_5.1
samba-3.0.33-3.29.el5_5.1
[root@localhost RPMS]# rpm -qa | grep perl
perl-URI-1.35-3
perl-DBI-1.52-2.el5
perl-Compress-Zlib-1.42-1.fc6
perl-XML-SAX-0.14-8
perl-LDAP-0.33-3.fc6
perl-Crypt-SmbHash-0.12-1.2.el6.rf
perl-String-CRC32-1.4-2.fc6
perl-Unicode-Map-0.112-0.0.rh7.rf
perl-Convert-ASN1-0.20-1.1
perl-Digest-SHA1-2.11-1.2.1
perl-XML-NamespaceSupport-1.09-1.2.1
perl-HTML-Tagset-3.10-2.1.1
perl-libwww-perl-5.805-1.1.1
perl-Digest-HMAC-1.01-15
perl-DBD-MySQL-3.0007-2.el5
perl-Net-SSLeay-1.30-4.fc6
perl-IO-Socket-SSL-1.01-1.fc6
perl-HTML-Parser-3.55-1.fc6
perl-5.8.8-32.el5_5.2
perl-Crypt-SSLeay-0.51-11.el5
[root@localhost RPMS]#


0
 
LVL 79

Expert Comment

by:arnold
ID: 34893444
Did you run this "yum install openldap openldap-clients openldap-servers nss_ldap samba samba-client httpd openssl mod_ssl mysql mysql-server php php-xml php-ldap php-mysql php-pdo php-cli php-common perl-LDAP smbldap-tools perl-Digest-SHA1 perl-Digest-SHA perl-Unicode-String perl-Unicode-Map8 perl-Unicode-Map perl-Unicode-MapUTF8 perl-Jcode screen systat dstat "
From http://www.howtoforge.com/centos-5.x-samba-domain-controller-with-ldap-backend#comment-25731
0
 

Author Comment

by:david875
ID: 34902682
@arnold : you keep pasting the same link, i got it man :D Now i'm pasting you what happened when i followed what you pasted me as link. Can you help to resolve that?
0
 
LVL 79

Expert Comment

by:arnold
ID: 34903905
You need to run the yum install which includes all the packages that you need.
An idea behind a link is that they provide you with a step by step guide to get to where you want to be.
You posting output from rpm -qa  where you filter out some item provides me with no information on what the difficulties you are having following the directions.
0
 

Author Comment

by:david875
ID: 34910955
Only 1 explaination : Do i need to LDAP + SAMBA to setup a domain controller? not only LDAP?
0
 
LVL 79

Expert Comment

by:arnold
ID: 34911070
You do not have to use LDAP as the backend.
There are other alternatives, but LDAP is the more robust and uses the same directory that the windows AD uses.

http://www.linuxquestions.org/questions/linux-server-73/centos-5-3-and-samba-pdc-joining-xp-clients-nightmare-723867/


0
 

Author Comment

by:david875
ID: 34911209
0
 
LVL 79

Expert Comment

by:arnold
ID: 34911903
The link above is a reference to a person who was using non LDAP backend but used smbpasswd.

Which part are you having issues with.  Did you add the machine account referenced in this instructions? You would then use the workstation, properties of my computer. Computer name, run the network wizard to join the system into the PDC.

Do you have bind setup and running on the network that points to this samba/ldap?
The links are just a reference, without you including what the issue you are having, I am not in a position to guess where you are having the difficulties.
0
 

Author Comment

by:david875
ID: 34911999
Do you have bind setup and running on the network that points to this samba/ldap?

No, how to do it?
0
 
LVL 79

Expert Comment

by:arnold
ID: 34912150
http://download.gna.org/smbldap-tools/docs/samba-ldap-howto/

Did you test everything on your linux setup that Sama+ldap is working?
check on the centos box /usr/sbin/lsof -i:53 and see what is returned?

You should point the name server on the workstation to the linux box's IP versus the router.
Double check to make sure that your centos box is not running the firewall (/sbin/iptables -L)
/etc/init.d/iptables off (only if this server is behind a router and does not get a public IP)
0
 

Author Comment

by:david875
ID: 34912241
[root@localhost ~]# /usr/sbin/lsof -i:53
[root@localhost ~]# /usr/sbin/lsof -i:53
[root@localhost ~]#

Doesn't show anything.

My firewall is disabled.
0
 
LVL 79

Expert Comment

by:arnold
ID: 35056079
yum install bind bind-chroot

configure the hosts file on the client to point to the IP of the server for the workgroup.
IP_of_centos_pdc WORKGroupname
0
 
LVL 7

Accepted Solution

by:
zakar1a earned 2000 total points
ID: 35073022
CentOS has a lot of problems, i suggest to go with Ubuntu, it is more reliable.
0

Featured Post

The Ideal Solution for Multi-Display Applications

Check out ATEN’s VS1912 12-Port DP Video Wall Media Player at InfoComm 2017. Kerri describes how easy it is to design creative video walls in asymmetric layouts and schedule detailed playlists ahead of time with its advanced scheduling feature.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Let's recap what we learned from yesterday's Skyport Systems webinar.
Active Directory can easily get cluttered with unused service, user and computer accounts. In this article, I will show you the way I like to implement ADCleanup..
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…
Suggested Courses

718 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question