- smbldap-toolsパッケージをインストールする。
[root@localhost tmp]# yum install smbldap-tools
Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
* addons: rsync.atworks.co.jp
* base: rsync.atworks.co.jp
* extras: rsync.atworks.co.jp
* rpmforge: ftp-stud.fht-esslingen.de
* updates: rsync.atworks.co.jp
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package smbldap-tools.noarch 0:0.9.5-2.el5.rf set to be updated
--> Processing Dependency: perl(Net::LDAP::LDIF) for package: smbldap-tools
--> Processing Dependency: perl(Unicode::MapUTF8) for package: smbldap-tools
--> Processing Dependency: perl(Net::LDAP) for package: smbldap-tools
--> Processing Dependency: perl(Crypt::SmbHash) for package: smbldap-tools
--> Running transaction check
---> Package perl-Crypt-SmbHash.noarch 0:0.12-1.2.el5.rf set to be updated
---> Package perl-LDAP.noarch 1:0.33-3.fc6 set to be updated
--> Processing Dependency: perl(XML::SAX::Base) for package: perl-LDAP
---> Package perl-Unicode-MapUTF8.noarch 0:1.11-1.2.el5.rf set to be updated
--> Processing Dependency: perl(Unicode::Map8) for package: perl-Unicode-MapUTF8
--> Processing Dependency: perl(Jcode) for package: perl-Unicode-MapUTF8
--> Processing Dependency: perl(Unicode::String) for package: perl-Unicode-MapUTF8
--> Processing Dependency: perl(Unicode::Map) for package: perl-Unicode-MapUTF8
--> Running transaction check
---> Package perl-Jcode.noarch 0:2.07-1.el5.rf set to be updated
---> Package perl-Unicode-Map.x86_64 0:0.112-1.el5.rf set to be updated
---> Package perl-Unicode-Map8.x86_64 0:0.13-1.el5.rf set to be updated
---> Package perl-Unicode-String.x86_64 0:2.09-1.2.el5.rf set to be updated
---> Package perl-XML-SAX.noarch 0:0.14-8 set to be updated
--> Processing Dependency: perl(XML::NamespaceSupport) for package: perl-XML-SAX
--> Running transaction check
---> Package perl-XML-NamespaceSupport.noarch 0:1.09-1.2.1 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
==========================================================================================
Package Arch Version Repository Size
==========================================================================================
Installing:
smbldap-tools noarch 0.9.5-2.el5.rf rpmforge 346 k
Installing for dependencies:
perl-Crypt-SmbHash noarch 0.12-1.2.el5.rf rpmforge 14 k
perl-Jcode noarch 2.07-1.el5.rf rpmforge 35 k
perl-LDAP noarch 1:0.33-3.fc6 base 316 k
perl-Unicode-Map x86_64 0.112-1.el5.rf rpmforge 483 k
perl-Unicode-Map8 x86_64 0.13-1.el5.rf rpmforge 163 k
perl-Unicode-MapUTF8 noarch 1.11-1.2.el5.rf rpmforge 16 k
perl-Unicode-String x86_64 2.09-1.2.el5.rf rpmforge 151 k
perl-XML-NamespaceSupport noarch 1.09-1.2.1 base 15 k
perl-XML-SAX noarch 0.14-8 base 77 k
Transaction Summary
==========================================================================================
Install 10 Package(s)
Upgrade 0 Package(s)
Total download size: 1.6 M
Is this ok [y/N]: y
Downloading Packages:
(1/10): perl-Crypt-SmbHash-0.12-1.2.el5.rf.noarch.rpm | 14 kB 00:00
(2/10): perl-XML-NamespaceSupport-1.09-1.2.1.noarch.rpm | 15 kB 00:00
(3/10): perl-Unicode-MapUTF8-1.11-1.2.el5.rf.noarch.rpm | 16 kB 00:00
(4/10): perl-Jcode-2.07-1.el5.rf.noarch.rpm | 35 kB 00:00
(5/10): perl-XML-SAX-0.14-8.noarch.rpm | 77 kB 00:00
(6/10): perl-Unicode-String-2.09-1.2.el5.rf.x86_64.rpm | 151 kB 00:01
(7/10): perl-Unicode-Map8-0.13-1.el5.rf.x86_64.rpm | 163 kB 00:00
(8/10): perl-LDAP-0.33-3.fc6.noarch.rpm | 316 kB 00:00
(9/10): smbldap-tools-0.9.5-2.el5.rf.noarch.rpm | 346 kB 00:00
(10/10): perl-Unicode-Map-0.112-1.el5.rf.x86_64.rpm | 483 kB 00:00
------------------------------------------------------------------------------------------
Total 200 kB/s | 1.6 MB 00:08
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : perl-Unicode-String 1/10
Installing : perl-Unicode-Map 2/10
Installing : perl-Unicode-Map8 3/10
Installing : perl-Crypt-SmbHash 4/10
Installing : perl-Jcode 5/10
Installing : perl-Unicode-MapUTF8 6/10
Installing : perl-XML-NamespaceSupport 7/10
Installing : perl-XML-SAX 8/10
Installing : perl-LDAP 9/10
Installing : smbldap-tools 10/10
Installed:
smbldap-tools.noarch 0:0.9.5-2.el5.rf
Dependency Installed:
perl-Crypt-SmbHash.noarch 0:0.12-1.2.el5.rf
perl-Jcode.noarch 0:2.07-1.el5.rf
perl-LDAP.noarch 1:0.33-3.fc6
perl-Unicode-Map.x86_64 0:0.112-1.el5.rf
perl-Unicode-Map8.x86_64 0:0.13-1.el5.rf
perl-Unicode-MapUTF8.noarch 0:1.11-1.2.el5.rf
perl-Unicode-String.x86_64 0:2.09-1.2.el5.rf
perl-XML-NamespaceSupport.noarch 0:1.09-1.2.1
perl-XML-SAX.noarch 0:0.14-8
Complete!
[root@localhost tmp]# service smb start
SMB サービスを起動中: [ OK ]
NMB サービスを起動中: [ OK ]
[root@localhost tmp]# cd /usr/share/doc/smbldap-tools-0.9.5/
[root@localhost smbldap-tools-0.9.5]# ./configure.pl
Use of $# is deprecated at ./configure.pl line 314.
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
smbldap-tools script configuration
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Before starting, check
. if your samba controller is up and running.
. if the domain SID is defined (you can get it with the 'net getlocalsid')
. you can leave the configuration using the Crtl-c key combination
. empty value can be set with the "." character
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Looking for configuration files...
Samba Configuration File Path [/etc/samba/smb.conf] >
The default directory in which the smbldap configuration files are stored is shown.
If you need to change this, enter the full directory path, then press enter to continue.
Smbldap-tools Configuration Directory Path [/etc/smbldap-tools/] >
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Let's start configuring the smbldap-tools scripts ...
. workgroup name: name of the domain Samba act as a PDC
workgroup name [PROJECT-E] >
. netbios name: netbios name of the samba controler
netbios name [] > pdc
. logon drive: local path to which the home directory will be connected (for NT Workstations). Ex: 'H:'
logon drive [] > H:
. logon home: home directory location (for Win95/98 or NT Workstation).
(use %U as username) Ex:'\\pdc\%U'
logon home (press the "." character if you don't want homeDirectory) [\\pdc\%U] >
. logon path: directory where roaming profiles are stored. Ex:'\\pdc\profiles\%U'
logon path (press the "." character if you don't want roaming profile) [\\pdc\profiles\%U] >
. home directory prefix (use %U as username) [/home/%U] >
. default users' homeDirectory mode [700] >
. default user netlogon script (use %U as username) [] >
default password validation time (time in days) [45] >
. ldap suffix [dc=pj-e,dc=com] >
. ldap group suffix [ou=Groups] >
. ldap user suffix [ou=Users] >
. ldap machine suffix [ou=Computers] >
. Idmap suffix [ou=Idmap] >
. sambaUnixIdPooldn: object where you want to store the next uidNumber
and gidNumber available for new users and groups
sambaUnixIdPooldn object (relative to ${suffix}) [sambaDomainName=PROJECT-E] >
. ldap master server: IP adress or DNS name of the master (writable) ldap server
ldap master server [localhost] >
. ldap master port [389] >
. ldap master bind dn [cn=Manager,dc=pj-e,dc=com] >
. ldap master bind password [] > ← ldapadminを入力する。
. ldap slave server: IP adress or DNS name of the slave ldap server: can also be the master one
ldap slave server [localhost] >
. ldap slave port [389] >
. ldap slave bind dn [cn=Manager,dc=pj-e,dc=com] >
ldap slave bind password [] > ← ldapadminを入力する。
. ldap tls support (1/0) [0] >
. SID for domain PROJECT-E: SID of the domain (can be obtained with 'net getlocalsid pdc')
SID for domain PROJECT-E [S-1-5-21-4169934945-3125951227-79960791] >
. unix password encryption: encryption used for unix passwords
unix password encryption (CRYPT, MD5, SMD5, SSHA, SHA) [SSHA] >
. default user gidNumber [513] >
. default computer gidNumber [515] >
. default login shell [/bin/bash] >
. default skeleton directory [/etc/skel] >
. default domain name to append to mail adress [] >
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Use of uninitialized value in concatenation (.) or string at ./configure.pl line 314, <STDIN> line 34.
backup old configuration files:
/etc/smbldap-tools/smbldap.conf->/etc/smbldap-tools/smbldap.conf.old
/etc/smbldap-tools/smbldap_bind.conf->/etc/smbldap-tools/smbldap_bind.conf.old
writing new configuration file:
/etc/smbldap-tools/smbldap.conf done.
/etc/smbldap-tools/smbldap_bind.conf done.