HOWTO LDAP SAMBA PDC/Install
From Gentoo Linux Wiki
| Installation • Kernel & Hardware • Networks • Portage • Software • System • X Server • Gaming • Non-x86 • Emulators • Misc |
| Previous page | Top | Next Page |
Contents |
[edit] Required Components
[edit] Packages
We need to ensure that the following packages are installed
- samba
- openldap
- nss_ldap
- pam_ldap
- smbldap-tools
[edit] USE flags
required
I consider the following use flags as required to have a successful install
- acl - Adds support for Access Control Lists
- kerberos - Adds kerberos support
- ldap - Adds LDAP support (Lightweight Directory Access Protocol)
- pam - Adds support PAM (Pluggable Authentication Modules) - DANGEROUS to arbitrarily flip
- readline - enables support for libreadline, a GNU line-editing library that most everyone wants.
- crypt - Add support for encryption -- using mcrypt or gpg where applicable
- gdbm - Adds support for sys-libs/gdbm (GNU database libraries)
- samba - Adds support for SAMBA
- ssl - Adds support for Secure Socket Layer connections
- tcpd - Adds support for TCP wrappers
recommended
these use flags are recommended to match my test environment but have not been confirmed as needless or needed, however they should not affect your results
- cups - Add support for CUPS (Common Unix Printing System)
- python - Adds support/bindings for the Python language
- perl - Adds support/bindings for the Perl language.
- xml2 - Check/Support flag for XML library (version 2)
- mysql - Adds mySQL support
- berkdb - Adds support for sys-libs/db (Berkeley DB for MySQL)
We can add these flags into several places, our best bet is to add them to the /etc/make.conf file. add the following line to the bottom of your make.conf file
USE="${USE} acl kerberos ldap pam readline crypt gdbm samba ssl tcpd cups python
perl xml2 mysql berkdb"
Or use euse (from app-portage/gentoolkit package) to add the USE flags into your make.conf:
# euse --enable acl kerberos ldap pam readline crypt gdbm samba ssl tcpd cups python \ perl xml2 mysql berkdb
[edit] emerge
Now that our USE flags and accept keywords are set we can let emerge get, compile and install our packages. Run the following command and take a break, as it will be a while before it's done.
# emerge samba openldap nss_ldap pam_ldap smbldap-tools
[edit] Optional Packages
If you intend to use Web admin interfaces such as: phpLDAPadmin or LAM. Then you might want to emerge apache and mod_php at this point.
[edit] USE Flags
you have the option of compiling either apache version 1 or 2, determining which version you want to use is outside the scope of this HowTo, however if you know that you want to use version two then, you need to have the USE flag apache2 set. I have found that most of the php administration tools will not function properly with the phphardened flag set. Ensure that php is not compiled with phphardened by using the -phphardened flag.
- note: the flag in latest versions is actually hardenedphp
- note: the use flags needed by PHP for LAM are xml nls session pcre
[edit] emerge
Assuming you have set the desired USE flags for apache and php go ahead and emerge them. again this will take a while so go take a break after running the following command
# emerge apache mod_php
after successful emersion of the above sections, continue onto the next section
| Previous page | Top | Next Page |
