Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 19th January 2008, 13:29
ca_grover ca_grover is offline
Junior Member
 
Join Date: Nov 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default OpenLDAP + Samba Domain on Ubuntu 7.10

I followed the How-To just fine, right through to step # 9, where it asks you to reboot your server and confirm you can still login. (http://www.howtoforge.com/openldap-s...-ubuntu7.10-p2)

So, what do you do when you can no longer login? Console login AND SSH login are both just hanging and/or timing out. (root just hangs, user account times out).

Short of using a live cd type thing (I'm using a virtual machine) and resetting everything, is there an easy way to fix things? I ran into NO issues at all in the previous steps.

Unfortunately I can't post the contents of any file to help - becasue I can't log in.

Tips are appreciated.
Reply With Quote
Sponsored Links
  #2  
Old 19th January 2008, 13:48
ca_grover ca_grover is offline
Junior Member
 
Join Date: Nov 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Got access, so can post any pertinent files/command output. (rebooted, went to the "recovery" kernel from the Grub menu... I'm trying to back out some of the more recent changes... But can still use some help here... Thanks.
Reply With Quote
  #3  
Old 20th January 2008, 19:20
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Quote:
Originally Posted by ca_grover
Got access, so can post any pertinent files/command output.
Are there any errors in your log files?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #4  
Old 21st January 2008, 06:30
ca_grover ca_grover is offline
Junior Member
 
Join Date: Nov 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Nope. Nothing obvious in any of the log files (messages, syslogd, etc.).

I stepped back the last couple of changes and then tried to apply them again, thinking I may have messed up one of these steps. I'm getting the same behavior. Console login with root is hanging. SSH connections are being refused. console login with regular user is timing out/hanging.

I'm stumped. One one hand, I don't really need LDAP authentication to the server itself. On the otherhand, if that isn't working, it suggests setting up a workstation to authenticate against it will fail too. So.... Guess I'm off to learn about PAM.
Reply With Quote
  #5  
Old 21st January 2008, 07:00
ca_grover ca_grover is offline
Junior Member
 
Join Date: Nov 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Just for completeness, here's the only thing I'm seeing that could be indicative of issues:

[ 52.715964] Failure registering capabilities with primary security module.

- in the "dmesg" output.

I noticed as well that if I use the recovery kernel, I *can* login just fine without having to override anything. slapd is started. But, I'm not totally clear what the recovery kernel is setting up (yet), so suspect the LDAP authentications are not being used.

On a hunch, I checked if Open LDAP is starting when I use the normal kernel - nope. Well thar's the problem... now if I can just figure out why it starts with the recovery kernel, but not the normal kernel... sighs...

Found a thread on this - seems to be a bug with Ubuntu Gutsy:
https://bugs.launchpad.net/ubuntu/+s...ap/+bug/155947
Reply With Quote
  #6  
Old 22nd January 2008, 19:49
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Quote:
Originally Posted by ca_grover
On a hunch, I checked if Open LDAP is starting when I use the normal kernel - nope. Well thar's the problem... now if I can just figure out why it starts with the recovery kernel, but not the normal kernel... sighs...
Do you get any errors when you start OpenLDAP manually?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #7  
Old 23rd January 2008, 14:04
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Quote:
Originally Posted by ca_grover
Just for completeness, here's the only thing I'm seeing that could be indicative of issues:

[ 52.715964] Failure registering capabilities with primary security module.

- in the "dmesg" output.
Seems as if some other service is already listening on a port that the system is trying to bind to: http://ubuntuforums.org/showthread.php?t=604312
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #8  
Old 24th August 2008, 08:38
mperreault mperreault is offline
Junior Member
 
Join Date: Dec 2007
Posts: 12
Thanks: 3
Thanked 0 Times in 0 Posts
Smile OpenLDAP + Samba Domain on Ubuntu 7.10 (Version 2)

I found version 2 of this same tutorial over on ubuntu forums... It seems to have solved the majority of my problems!

http://ubuntuforums.org/showthread.php?t=640760

it is also available on the authors personal site

http://www.rrcomputerconsulting.com/...p?article_id=3

Thanks Ricky!
Reply With Quote
  #9  
Old 24th August 2008, 11:15
mperreault mperreault is offline
Junior Member
 
Join Date: Dec 2007
Posts: 12
Thanks: 3
Thanked 0 Times in 0 Posts
Default

When I log onto the XP machine I ALWAYS get 2 errors with regards to roaming profiles... The XP machine then creates a new temporary profile each time the user logs in. Which is slow...

Error Message 1
Quote:
Windows cannot locate the server copy of your roaming profile and is attempting to log you on with your local profile. Changes to the profile will not be copied to the server when you logoff. Possible causes of this error include network problems or insufficient security rights. If this problem persists, contact your network administrator.

DETAIL - The network name cannot be found.
The part about the network name cannot be found is concerning... So I pinged dc01-ubuntu and it worked however when I ping dc01-ubuntu.example.local it doesn't work...

Error Message 2
Quote:
Windows cannot find the local profile and is logging you on with a temporary profile. Changes you make to this profile will be lost when you log off.
The allusers.bat script seems to run however I had to change any instances of \\dc01-ubuntu.example.local to \\dc01-ubuntu.

I don't want roaming profiles, but I also don't want error messages each time I log in. And I need those scripts to run.. Any suggestions?

I'm following this updated tutorial..
http://ubuntuforums.org/showthread.php?t=640760

Here is a link to the Virtual Machine I've created to try to get this working.. You might have to change the static IP address etc to make this work for you? Let me know if you've solved my problem and how. I created this using VMWare Fusion for Mac but I assume it should run in the VMWare player for any other OS..
http://webcitr.us/ubuntu7.10_SAMBA_OPENLDAP.rar
Attached Images
  

Last edited by mperreault; 24th August 2008 at 13:37.
Reply With Quote
  #10  
Old 25th August 2008, 22:05
mperreault mperreault is offline
Junior Member
 
Join Date: Dec 2007
Posts: 12
Thanks: 3
Thanked 0 Times in 0 Posts
Default

I've solved the problem! In the samba.conf file i had

"login path =" instead of "logon path ="

No more errors while logging into windows! Now I'm going to figure out how to write a login script to do exactly what I need!
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenLDAP + Samba Domain Controller On Ubuntu 7.10 agarcia71 HOWTO-Related Questions 19 18th July 2008 15:41
OpenLDAP + Samba Domain yakkeh HOWTO-Related Questions 1 10th January 2008 16:09
Ubuntu 7.10 LDAP Samba question netwerkdude HOWTO-Related Questions 0 6th January 2008 22:35
samba domain controller - ubuntu eoij1 HOWTO-Related Questions 3 6th October 2006 14:35
Ubuntu Samba -- 'Unknown User' error in Win2k? chewtoy Server Operation 2 5th September 2006 15:21


All times are GMT +2. The time now is 19:54.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.