View previous topic :: View next topic |
Author |
Message |
Glock Junior Member
Joined: 02 Feb 2013 Posts: 2
|
Posted: Sat Feb 02, 2013 9:11 pm Post subject: Cant find ldap server |
|
|
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 |
|
gerasimos_h Site Admin
Joined: 09 Aug 2007 Posts: 1757 Location: Greece
|
Posted: Sun Feb 03, 2013 3:22 pm Post subject: |
|
|
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 |
|
Glock Junior Member
Joined: 02 Feb 2013 Posts: 2
|
Posted: Sun Feb 03, 2013 4:23 pm Post subject: |
|
|
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 |
|
gerasimos_h Site Admin
Joined: 09 Aug 2007 Posts: 1757 Location: Greece
|
|
Back to top |
|
|