david875
asked on
How to install Samba+LDAP as PDC on CentOS 5.5
How to install Samba+LDAP as PDC on CentOS 5.5 ??
ASKER
[root@localhost openldap]# rpm -i smbldap-tools-0.9.1-1.2.el 5.rf.noarc h.rpm
warning: smbldap-tools-0.9.1-1.2.el 5.rf.noarc h.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.el 5.rf.noarc h
perl-ldap is needed by smbldap-tools-0.9.1-1.2.el 5.rf.noarc h
[root@localhost openldap]#
warning: smbldap-tools-0.9.1-1.2.el
error: Failed dependencies:
perl(Crypt::SmbHash) is needed by smbldap-tools-0.9.1-1.2.el
perl-ldap is needed by smbldap-tools-0.9.1-1.2.el
[root@localhost openldap]#
ASKER
I fixed the problem of perl(Crypt::SmbHash), now i'm trying to fix the problem of perl-ldap
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.
yum will include the dependencies if any during the install.
ASKER
I did :) I have the latest update but i need that rpm now "perl-ldap" i tried many and didnt work
ASKER
[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.e l5_5.1
samba-common-3.0.33-3.29.e l5_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.fc 6
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.el 5
perl-Net-SSLeay-1.30-4.fc6
perl-IO-Socket-SSL-1.01-1. fc6
perl-HTML-Parser-3.55-1.fc 6
perl-5.8.8-32.el5_5.2
perl-Crypt-SSLeay-0.51-11. el5
[root@localhost RPMS]#
openldap-clients-2.3.43-12
openldap-servers-2.3.43-12
openldap-2.3.43-12.el5_5.3
[root@localhost RPMS]# rpm -qa | grep samba
samba-client-3.0.33-3.29.e
samba-common-3.0.33-3.29.e
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.
perl-XML-SAX-0.14-8
perl-LDAP-0.33-3.fc6
perl-Crypt-SmbHash-0.12-1.
perl-String-CRC32-1.4-2.fc
perl-Unicode-Map-0.112-0.0
perl-Convert-ASN1-0.20-1.1
perl-Digest-SHA1-2.11-1.2.
perl-XML-NamespaceSupport-
perl-HTML-Tagset-3.10-2.1.
perl-libwww-perl-5.805-1.1
perl-Digest-HMAC-1.01-15
perl-DBD-MySQL-3.0007-2.el
perl-Net-SSLeay-1.30-4.fc6
perl-IO-Socket-SSL-1.01-1.
perl-HTML-Parser-3.55-1.fc
perl-5.8.8-32.el5_5.2
perl-Crypt-SSLeay-0.51-11.
[root@localhost RPMS]#
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
From http://www.howtoforge.com/centos-5.x-samba-domain-controller-with-ldap-backend#comment-25731
ASKER
@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?
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.
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.
ASKER
Only 1 explaination : Do i need to LDAP + SAMBA to setup a domain controller? not only LDAP?
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/
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/
ASKER
This link http://www.linuxquestions.org/questions/linux-server-73/centos-5-3-and-samba-pdc-joining-xp-clients-nightmare-723867/ Doesn't show how to join an XP to the LDAP domain.
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.
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.
ASKER
Do you have bind setup and running on the network that points to this samba/ldap?
No, how to do it?
No, how to do it?
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)
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)
ASKER
[root@localhost ~]# /usr/sbin/lsof -i:53
[root@localhost ~]# /usr/sbin/lsof -i:53
[root@localhost ~]#
Doesn't show anything.
My firewall is disabled.
[root@localhost ~]# /usr/sbin/lsof -i:53
[root@localhost ~]#
Doesn't show anything.
My firewall is disabled.
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
configure the hosts file on the client to point to the IP of the server for the workgroup.
IP_of_centos_pdc WORKGroupname
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
http://www.howtoforge.com/forums/showthread.php?t=11723
http://www.centos.org/docs/5/