P
P
Pavel2016-08-10 12:43:17
linux
Pavel, 2016-08-10 12:43:17

How to fix an error when working in the users.pl script (Elastix)?

There was a desire to set up an exchange between the asterisk and AD.
I found an article on Habré ( https://habrahabr.ru/post/125359/).
And I can’t figure it out, because when executing the script, I write an error (Can't call method "bind" on an undefined value at ./users.pl line 107, line 225.), and in the script itself, line 107:
(my $mesg = $ldap->bind ( dn=>$ADUserBind, password =>$ADpass);)
Please tell me where to dig?
PS;
# uname -a
Linux aster 2.6.18-371.1.2.el5 #1 SMP Tue Oct 22 12:51:53 EDT 2013 x86_64 x86_64 x86_64 GNU/Linux
Elastix: Elastix-2.5.0-STABLE-x86_64 -bin-08may2015

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rsa97, 2016-08-10
@Vevin

Can't call method "bind" on an undefined value at ./users.pl line 107, line 225
That is, the script did not find any AD servers and the $ldap variable is empty.
Have you entered the full name of your domain in the $AD variable?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question