FofBorg
March 17th, 2008, 01:33 PM
Has anyone seen this problem before...
I have followed this tutorial http://ubuntuforums.org/showthread.php?t=640760 in order to create a LDAP / SAMBA PDC server... Except some differences in drives setup, domain name and user name eveything is identical, setupwise...
My problem is the following... After a reboot I am incapable of login into the system, much less get my windows machines to join the domain...
My SSH services and othe remote services refuse to start, so I'm stuck with the standard login but this one freezes up right after the password with no messages, except a timeout afer 60 seconds... And it get even worse if I try from an LDAP account, it freezes right after the username entry....
Now, here comes where is get really, really weird...
I have copied the nsswitch.conf with the LDAP entries into a file that I called nsswitch.conf.new...
This file thus contain this :
# /etc/nsswitch.conf
#
# Example configuration of GNU Name Service Switch functionality.
# If you have the `glibc-doc-reference' and `info' packages installed, try:
# `info libc "Name Service Switch"' for information about this file.
passwd: compat ldap
group: compat ldap
shadow: compat ldap
hosts: files dns
networks: files
protocols: db files
services: db files
ethers: db files
rpc: db files
netgroup: nis
Before doing those modifications, the tutorial specified to create a backup file called nsswitch.conf.original... This file contains :
# /etc/nsswitch.conf
#
# Example configuration of GNU Name Service Switch functionality.
# If you have the `glibc-doc-reference' and `info' packages installed, try:
# `info libc "Name Service Switch"' for information about this file.
passwd: compat
group: compat
shadow: compat
hosts: files dns
networks: files
protocols: db files
services: db files
ethers: db files
rpc: db files
netgroup: nis
If I boot up in "safe mode" and copy the nsswitch.conf.original over nsswitch.conf like so:
cp /etc/nsswitch.conf.original /etc/nsswitch.conf
and then type "exit"... I see the services start normaly and when O get the console, I can log with my Linux account, nothing unusual...
I log using my admin account and copy nsswitch.conf.new over nsswitch.conf, what is weird is that I can now log using both my LDAP and Linux account, has was intended...
getent passwd et getent group shows both the LDAP and Linux users and groups...
Not only this, but I can also join the NT Domain from Windows machine and log into the NT machines using the LDAP account (that was the intent of the exercise in the first place, see if I can get Windows out, one piece at a time :) )
If I exit the account and go back to the login prompt, I can login, no problem, with Linux or LDAP account
It works... Until I reboot the machine for whatever reason... Then, I need to boot back in safe mode and redo the procedure...
At first I though the bind_policy was still on hard of something like that, but everything seems AOK...
I'm don't know where to look, cranking the log levels and debug to maximum was marginaly usefull as it just validated that my setup were good...
I'm flabergasted... I'm missing something obvious, I can feel it...
Anyone has a suggestion, or pointers as to what might be going wrong with my setups or machine ???
Could it be a bug of some type ???
I'm trying to get this situation resoved, but if all else fails, is there a way to add some cp commands to move the original file in place before the services starts and place the new file right after the service started up ???
I'm beginning to beleive in a ghost in the machine and I don't think this is a good thing in IT :lolflag:
I have followed this tutorial http://ubuntuforums.org/showthread.php?t=640760 in order to create a LDAP / SAMBA PDC server... Except some differences in drives setup, domain name and user name eveything is identical, setupwise...
My problem is the following... After a reboot I am incapable of login into the system, much less get my windows machines to join the domain...
My SSH services and othe remote services refuse to start, so I'm stuck with the standard login but this one freezes up right after the password with no messages, except a timeout afer 60 seconds... And it get even worse if I try from an LDAP account, it freezes right after the username entry....
Now, here comes where is get really, really weird...
I have copied the nsswitch.conf with the LDAP entries into a file that I called nsswitch.conf.new...
This file thus contain this :
# /etc/nsswitch.conf
#
# Example configuration of GNU Name Service Switch functionality.
# If you have the `glibc-doc-reference' and `info' packages installed, try:
# `info libc "Name Service Switch"' for information about this file.
passwd: compat ldap
group: compat ldap
shadow: compat ldap
hosts: files dns
networks: files
protocols: db files
services: db files
ethers: db files
rpc: db files
netgroup: nis
Before doing those modifications, the tutorial specified to create a backup file called nsswitch.conf.original... This file contains :
# /etc/nsswitch.conf
#
# Example configuration of GNU Name Service Switch functionality.
# If you have the `glibc-doc-reference' and `info' packages installed, try:
# `info libc "Name Service Switch"' for information about this file.
passwd: compat
group: compat
shadow: compat
hosts: files dns
networks: files
protocols: db files
services: db files
ethers: db files
rpc: db files
netgroup: nis
If I boot up in "safe mode" and copy the nsswitch.conf.original over nsswitch.conf like so:
cp /etc/nsswitch.conf.original /etc/nsswitch.conf
and then type "exit"... I see the services start normaly and when O get the console, I can log with my Linux account, nothing unusual...
I log using my admin account and copy nsswitch.conf.new over nsswitch.conf, what is weird is that I can now log using both my LDAP and Linux account, has was intended...
getent passwd et getent group shows both the LDAP and Linux users and groups...
Not only this, but I can also join the NT Domain from Windows machine and log into the NT machines using the LDAP account (that was the intent of the exercise in the first place, see if I can get Windows out, one piece at a time :) )
If I exit the account and go back to the login prompt, I can login, no problem, with Linux or LDAP account
It works... Until I reboot the machine for whatever reason... Then, I need to boot back in safe mode and redo the procedure...
At first I though the bind_policy was still on hard of something like that, but everything seems AOK...
I'm don't know where to look, cranking the log levels and debug to maximum was marginaly usefull as it just validated that my setup were good...
I'm flabergasted... I'm missing something obvious, I can feel it...
Anyone has a suggestion, or pointers as to what might be going wrong with my setups or machine ???
Could it be a bug of some type ???
I'm trying to get this situation resoved, but if all else fails, is there a way to add some cp commands to move the original file in place before the services starts and place the new file right after the service started up ???
I'm beginning to beleive in a ghost in the machine and I don't think this is a good thing in IT :lolflag: