Author Topic: [SOLVED] VoIP - Couldn't modify ... because invalid syntax  (Read 2815 times)

kajan

  • Zen Apprentice
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
[SOLVED] VoIP - Couldn't modify ... because invalid syntax
« on: October 13, 2012, 10:53:38 am »
Hi,

I'm trying to configure SIP client but when I use some zentyal user it fails with this message:

[Oct 13 10:37:27] ERROR[30082] res_config_ldap.c: Couldn't modify 'name'='knavratil', dn:uid=knavratil,ou=Users,dc=cuppro,dc=cz because Invalid syntax
[Oct 13 10:37:27] NOTICE[30082] chan_sip.c: Registration from '"Karel Navratil" <sip:knavratil@cuppro.cz>' failed for '192.168.1.143:44337' - Wrong password

[Oct 13 10:37:30] NOTICE[30072] chan_sip.c: Failed to authenticate device "Karel Navratil" <sip:knavratil@cuppro.cz>;tag=b8DU8Hk.s0.mD3laMKhx8XcKPE1sfyew for SUBSCRIBE

I'm 110% sure, that the password is correct.

Creating and registering phones works fine.

I used as username knavratil, knavratil at sip domain.cz, 1001, 1001 at sip domain

Has anybody idea what can be wrong?

Thanks!

« Last Edit: October 13, 2012, 02:42:49 pm by kajan »

kajan

  • Zen Apprentice
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
Re: VoIP - Couldn't modify ... because invalid syntax
« Reply #1 on: October 13, 2012, 01:51:41 pm »
I found it. Looks like zentyal doesn't set password to AstMD5secret attribute in LDAP. Without password it worked.

To set the password I had to do

echo -n "user:asterisk:secret" | md5sum

and output save to AstMD5secret attribute of the user.

christian

  • Guest
Re: VoIP - Couldn't modify ... because invalid syntax
« Reply #2 on: October 13, 2012, 01:54:29 pm »
interesting! Well done  :)
Please stand your first post as [SOLVED]  ;)

half_life

  • Bug Hunter
  • Zen Hero
  • *****
  • Posts: 867
  • Karma: +59/-0
    • View Profile
Re: [SOLVED] VoIP - Couldn't modify ... because invalid syntax
« Reply #3 on: October 13, 2012, 09:14:01 pm »
Sorry I didn't see this earlier,  I could have saved you a lot of heartache.  In ldap there is both MD5 encrypted passwords and plaintext.  The Zentyal interface populates MD5 as you found.  You could also have added the plain text password under the appropriate location in the users record.  Glad you found your answer though.

Ghilteras

  • Zen Apprentice
  • *
  • Posts: 18
  • Karma: +0/-0
    • View Profile
sorry to bring up a SOLVED thread again but the problem is that the new "online accounts" does not accept an empty password for the sip client, it keeps asking me "Please authorize Ubuntu to access your SIP account"

if I click on Grant, it will just ask me to imput the password, if I don't it loops and will ask to be granted

so how do I keep the ldap passwords in sync with asterisk extensions?
« Last Edit: December 20, 2012, 09:47:24 am by Ghilteras »

adel

  • Zen Apprentice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: [SOLVED] VoIP - Couldn't modify ... because invalid syntax
« Reply #5 on: December 20, 2012, 05:53:34 pm »
Sorry to bring up a SOLVED thread again, i got the same error with a slave server (zentyal core 3.0.9 ).

can you please explain me the solution, i'm new in zentyal  :-[

thank you

Ghilteras

  • Zen Apprentice
  • *
  • Posts: 18
  • Karma: +0/-0
    • View Profile
Re: VoIP - Couldn't modify ... because invalid syntax
« Reply #6 on: February 08, 2013, 04:33:43 pm »
guys, some clients cannot login because they NEED a password, what do we do? it only works with an empty pass but empathy, sflphone, jitsi and many other clients won't accept an empty pass, how do we sync them to the ldap ones?
« Last Edit: February 08, 2013, 05:07:45 pm by Ghilteras »