Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2169
  • Last Modified:

How to install Samba+LDAP as PDC on CentOS 5.5

How to install Samba+LDAP as PDC on CentOS 5.5 ??
0
david875
Asked:
david875
  • 9
  • 8
1 Solution
 
david875Author Commented:
[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
 
david875Author Commented:
I fixed the problem of perl(Crypt::SmbHash), now i'm trying to fix the problem of perl-ldap
0
Get 10% Off Your First Squarespace Website

Ready to showcase your work, publish content or promote your business online? With Squarespace’s award-winning templates and 24/7 customer service, getting started is simple. Head to Squarespace.com and use offer code ‘EXPERTS’ to get 10% off your first purchase.

 
arnoldCommented:
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
 
david875Author Commented:
I did :) I have the latest update but i need that rpm now "perl-ldap" i tried many and didnt work
0
 
david875Author Commented:
[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
 
arnoldCommented:
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
 
david875Author Commented:
@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
 
arnoldCommented:
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
 
david875Author Commented:
Only 1 explaination : Do i need to LDAP + SAMBA to setup a domain controller? not only LDAP?
0
 
arnoldCommented:
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
 
david875Author Commented:
0
 
arnoldCommented:
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
 
david875Author Commented:
Do you have bind setup and running on the network that points to this samba/ldap?

No, how to do it?
0
 
arnoldCommented:
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
 
david875Author Commented:
[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
 
arnoldCommented:
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
 
zakar1aCommented:
CentOS has a lot of problems, i suggest to go with Ubuntu, it is more reliable.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

  • 9
  • 8
Tackle projects and never again get stuck behind a technical roadblock.
Join Now