Author Topic: Installation Zentyal by command line - Ldap issue  (Read 2177 times)

Bazcor

  • Zen Apprentice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Installation Zentyal by command line - Ldap issue
« on: September 16, 2015, 09:12:03 pm »
Hi,

I installed Zentyal on my existed Ubuntu 14.04.

I am facing a problem when I am creating the users under "User and Computers"... this is the error:

root command set -e
mkdir -p '/home/samba/profiles/user1'
chown -R 2502:2513 '/home/samba/profiles/user1'
chmod 0700 '/home/samba/profiles/user1'
setfacl -b '/home/samba/profiles/user1'
setfacl -R -m u:root:rwx,g::---,g:2513:---,u:'user1':rwx '/home/samba/profiles/user1'
setfacl -R -m d:u:root:rwx,d:g::---,d:g:2513:---,d:u:'user1':rwx '/home/samba/profiles/user1' failed.
Error output: setfacl: Option -m: Invalid argument near character 32

After debug for a while I found that OS is not able to contact LDAP to validate "user1", that is the problem.

I checked OS by "getent" command and it is not returning user/group values.

root@zentyal:/home/samba/profiles# ls -l
total 32
drwxrwx---+ 2 administrator domain admins 4096 Sep 16 12:16 Administrator
drwx------  2          2501          2514 4096 Sep 16 12:16 Guest
drwx------  2          2502 domain users  4096 Sep 16 12:22 user1
drwx------  2          2502 domain users  4096 Sep 16 12:34 user2
drwx------  2          2502 domain users  4096 Sep 16 13:18 user3
drwxrwx---+ 2          2502 domain users  4096 Sep 16 13:54 user4
drwx------  2          2502 domain users  4096 Sep 16 14:51 user5
root@zentyal:/home/samba/profiles# getent passwd | grep 2501
root@zentyal:/home/samba/profiles# getent passwd | grep 2502

LDAP is running under port 389.

root@zentyal:/home/samba/profiles# ldapsearch -x -p 390 -LLL -h 192.168.1.207 -b "" -s base "(objectclass=*)" supportedSASLMechanisms
ldap_sasl_bind(SIMPLE): Can't contact LDAP server (-1)
root@zentyal:/home/samba/profiles# ldapsearch -x -p 389 -LLL -h 192.168.1.207 -b "" -s base "(objectclass=*)" supportedSASLMechanisms
dn:
supportedSASLMechanisms: GSS-SPNEGO
supportedSASLMechanisms: GSSAPI
supportedSASLMechanisms: NTLM

root@zentyal:/home/samba/profiles#

Do you know what should I change in order to get my Zentyal working?

Thanks in advance.

trysomething

  • Zen Warrior
  • ***
  • Posts: 118
  • Karma: +5/-0
  • Founder of The Tiki Lab
    • View Profile
    • The Tiki Lab | Bridging the gap between technology and vision impairment!
Re: Installation Zentyal by command line - Ldap issue
« Reply #1 on: September 16, 2015, 11:08:28 pm »
I'm going to guess you haven't configured OpenChange or Samba yet.  Go check the Wiki out here:

https://www.google.com/search?q=installing+zentyal+4.1+on+ubuntu&rls=com.microsoft:en-US:IE-Address&ie=UTF-8&oe=UTF-8&sourceid=ie7&gws_rd=ssl

Sorry it's not an actual link but I'm blind and I can never find that stupid insert hyperlink button LoL.

Anyways you need to configure certain modules before you can do other things.  You'll also need to do almost everything for Zentyal via the web GUI instead of going through terminal.  To access the web GUI just crack open Firefox and browse to https://<server local IP>:8443/ and login with a user that has root privileges.  For the record you really should disable the root user, I know it's a pain typing sudo but sudo su makes it easier!
You will have to excuse my posts not having actual links in them.  I'm blind and can never find that insert hyperlink button LoL.  If you, or someone you know has vision problems check out The Tiki Lab.