| 205 | This process will ask you a bunch of ldap related questions that will be used to prime the ldap.confs (there are 2). It's not critical to get them correct as we're just going to replace those conf's any way. (Accepting the defaults is ok). |
| 206 | |
| 207 | 2. Edit the /etc/ldap.conf file to configure the ldap client. |
| 208 | {{{ |
| 209 | base dc=orbit-lab,dc=org |
| 210 | uri ldap://ldap.orbit-lab.org/ |
| 211 | ldap_version 3 |
| 212 | binddn |
| 213 | rootbinddn cn=admin,dc=orbit-lab,dc=org |
| 214 | pam_password md5 |
| 215 | nss_initgroups_ignoreusers backup,bin,daemon,games,gnats,irc,libuuid,libvirt- qemu,list,lp,mail,man,messagebus,news,ntp,postfix,proxy,root,sshd,statd,sync,sys,syslog,usbmux,uucp,www-data |
| 216 | }}} |
| 217 | You could edit this file and change all the values to reflect this (leaveing the rest as comments) or simply replace the one you have with this one. You can also check the non-comment lines by executing: |
| 218 | {{{ |
| 219 | egrep -v "^#|^$" /etc/ldap.conf |
| 220 | }}} |
| 221 | |
| 222 | 3. The /etc/ldap/ldap.conf is the second file that guides the client. |
| 223 | {{{ |
| 224 | BASE dc=orbit-lab,dc=org |
| 225 | URI ldap://ldap.orbit-lab.org |
| 226 | }}} |
| 227 | Again you can edit it directly or copy this version. |
| 228 | |
| 229 | 4. The /etc/nsswitch.conf file should have the follow non comment lines: |
| 230 | {{{ |
| 231 | passwd: files ldap compat |
| 232 | group: files ldap compat |
| 233 | shadow: files compat |
| 234 | |
| 235 | hosts: files dns |
| 236 | networks: files |
| 237 | |
| 238 | protocols: db files |
| 239 | services: db files |
| 240 | ethers: db files |
| 241 | rpc: db files |
| 242 | |
| 243 | netgroup: nis |
| 244 | }}} |
| 245 | |
| 246 | 5. Copy or create the /etc/ldap.secret file |
| 247 | 6. Finally add the follow line to the /etc/sudoers file (note this is done with the visudo command). |
| 248 | {{{ |
| 249 | %admin ALL=(ALL) ALL |
| 250 | %sysadmin ALL=NOPASSWD: ALL |
| 251 | }}} |
| 252 | This has to be done manually. |
| 253 | * Configure networking for the node facing interface of the console e.g.: |
| 254 | {{{ |
| 255 | auto eth1 |
| 256 | iface eth1 inet static |
| 257 | address 10.14.0.10 |
| 258 | netmask 255.255.0.0 |
| 259 | }}} |
| 260 | 7. Install other software: |
| 261 | {{{ |
| 262 | apt-get install cfengine3 emacs ntp |
| 263 | }}} |
| 264 | 8. We need to make sure machine have fully qualified host name (some services depend on it). So: |
| 265 | {{{ |
| 266 | echo "console.sb4.orbit-lab.org" > /etc/hostname |
| 267 | }}} |