Log inUsernamePassword
Log me on automatically each visit    
Register
Register
Log in to check your private messages
Log in to check your private messages
SMS Forum Index » SMS User Support

Post new topic   Reply to topic
Cant find ldap server
View previous topic :: View next topic  
Author Message
Glock
Junior Member


Joined: 02 Feb 2013
Posts: 2

PostPosted: Sat Feb 02, 2013 9:11 pm    Post subject: Cant find ldap server Reply with quote

Hello!
the ldap service is running and port 389 is open.
I've also added some users and groups

but I can't retrieve any information from it using other linux clients (Debian and CentOS).

net ads info
Code:
[2013/02/02 14:02:39.748848,  0] utils/net_ads.c:285(ads_startup_int)
  ads_connect: No logon servers
[2013/02/02 14:02:40.561123,  0] utils/net_ads.c:285(ads_startup_int)
  ads_connect: No logon servers
Didn't find the ldap server!


ldapsearch -x -b 'dc=sms,dc=org'
Code:

# extended LDIF
#
# LDAPv3
# base <dc=sms,dc=org> with scope subtree
# filter: (objectclass=*)
# requesting: ALL
#

# search result
search: 2
result: 32 No such object

# numResponses: 1


It's like the clients cant see it.
I can SSH into this server with no problem.

What am I doing wrong?

Thanks in advance
Back to top
View user's profile Send private message
gerasimos_h
Site Admin


Joined: 09 Aug 2007
Posts: 1757
Location: Greece

PostPosted: Sun Feb 03, 2013 3:22 pm    Post subject: Reply with quote

Hi,
as far as I know, "net ads" search for Active Directory Domain Controllers, do you have one (windows server or samba4 setup)?

ADDC is only available with samba4, so unless you are running SMS-Current there is no other way to do it, other than running a Windows Server.

You can try passing the -S like "net ads info -S [your.server.IP]"
Also try to add yourserver in /etc/hosts on other linux boxes or setup a proper DNS server.

Here is my query from my ADDC test machine.
Code:
root@sms:~# net ads info
Failed to get server's current time!
LDAP server: 192.168.254.154
LDAP server name: sms.ad.sms.org
Realm: AD.SMS.ORG
Bind Path: dc=AD,dc=SMS,dc=ORG
LDAP port: 389
Server time: Thu, 01 Jan 1970 02:00:00 EET
KDC server: 192.168.254.154
Server time offset: 0


To setup a samba4 ADDC you need to upgrade samba and install new packages from SMS-Current.
You can do it easily with slapt-get.

Code:
slapt-get --add-keys
slapt-get -u
slapt-get -i samba heimdal avahi libdaemon ntp cifs-utils


Mind the new /etc/rc.d/rc.samba.new

gerasimos_h

_________________
Superb! Mini Server Project Manager
http://sms.it-ccs.com
Back to top
View user's profile Send private message Visit poster's website
Glock
Junior Member


Joined: 02 Feb 2013
Posts: 2

PostPosted: Sun Feb 03, 2013 4:23 pm    Post subject: Reply with quote

Hi, thank you for replying!

And thanks for the info about "net ads", I wasn't aware of that.
Unfortunately I don't have a windows server running,
My goal is to run SMS as the openldap sever (for study purpose only).
Back to top
View user's profile Send private message
gerasimos_h
Site Admin


Joined: 09 Aug 2007
Posts: 1757
Location: Greece

PostPosted: Sun Feb 03, 2013 4:56 pm    Post subject: Reply with quote

Do you want only to study OpenLDAP or you want to integrate samba with openldap?

If you upgrade to samba4 here are two guides to help you
http://en.gentoo-wiki.com/wiki/Samba4_as_Active_Directory_Server
http://wiki.samba.org/index.php/Samba_AD_DC_HOWTO


gerasimos_h

_________________
Superb! Mini Server Project Manager
http://sms.it-ccs.com
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    SMS Forum Index » SMS User Support All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

SMS - Superb! Mini Server Project © 2016
Powered by phpBB © 2001, 2002 phpBB Group
iCGstation v1.0 Template By Ray © 2003, 2004 iOptional