|
From: Brad D. <br...@Di...> - 2003-03-26 19:58:12
|
I am having the same problem that you are having.
Try setting your LANG environment variable to en_US.
Brad
On Wed, 2003-03-26 at 13:44, Daniel Davidson wrote:
> For simplicity's sake, I removed the search I was doing and replaced it with
> values I wanted it to use for gid and uid, so I disabled the search.
>
> That leaves my entire output as:
> Net::LDAP=HASH(0x804c00c) sending:
>
> 30 32 02 01 01 60 2D 02 01 03 04 21 63 6E 3D 6D 02...`-....!cn=m
> 61 6E 61 67 65 72 2C 64 63 3D 6C 69 66 65 2C 64 anager,dc=life,d
> 63 3D 75 69 75 63 2C 64 63 3D 65 64 75 80 05 67 c=uiuc,dc=edu..g
> 66 75 6E 6B __ __ __ __ __ __ __ __ __ __ __ __ funk
>
> 0000 50: SEQUENCE {
> 0002 1: INTEGER = 1
> 0005 45: [APPLICATION 0] {
> 0007 1: INTEGER = 3
> 000A 33: STRING = 'cn=manager,dc=life,dc=uiuc,dc=edu'
> 002D 5: [CONTEXT 0]
> 002F : 67 66 75 6E 6B __ __ __ __ __ __ __ __ __ __ __ gfunk
> 0034 : }
> 0034 : }
> Net::LDAP=HASH(0x804c00c) received:
>
> 30 0C 02 01 01 61 07 0A 01 00 04 00 04 00 __ __ 0....a........
>
> 0000 12: SEQUENCE {
> 0002 1: INTEGER = 1
> 0005 7: [APPLICATION 1] {
> 0007 1: ENUM = 0
> 000A 0: STRING = ''
> 000C 0: STRING = ''
> 000E : }
> 000E : }
> Please Enter the Name of the user
> Daniel Davidson
> Please Enter the the users UID
> jobuddah
> Please Enter the user's Password
> df
> Please Enter the Password again
> df
> Please Enter the shell of the user
> [/usr/libexec/openssh/sftp-server]
>
> uid=jobuddah,ou=People,dc=life,dc=uiuc,dc=edu
> Net::LDAP=HASH(0x804c00c) sending:
>
> substr outside of string at
> /usr/lib/perl5/site_perl/5.8.0/Convert/ASN1/Debug.pm line 33, <STDIN> line 5.
>
> Is that any more help?
>
> Dan
>
>
> ay 26 March 2003 12:53 pm, Graham Barr wrote:
> > Can you turn on debug at the start of the script, not just before
> > the ->add call. It may be the previous request that triggers
> > the problem.
> >
> > Graham.
> >
> > On Wed, Mar 26, 2003 at 11:47:42AM -0600, Daniel Davidson wrote:
> > > Debug gave me:
> > > Net::LDAP=HASH(0x804c00c) sending:
> > >
> > > substr outside of string at
> > > /usr/lib/perl5/site_perl/5.8.0/Convert/ASN1/Debug.pm line 33, <STDIN>
> > > line 5.
> > >
> > > I havent been able to find anything in the logs except for where I have
> > > stopped and restared slapd. It logs to /var/log somewhere, right?
> > >
> > > Dan
> > >
> > > On Wednesday 26 March 2003 11:09 am, Graham Barr wrote:
> > > > On Wed, Mar 26, 2003 at 10:52:50AM -0600, Daniel Davidson wrote:
> > > > > Following Grahm's advice, I received the following message.
> > > > >
> > > > > USR2 at /usr/lib/perl5/site_perl/5.8.0/Net/LDAP.pm line 661
> > > >
> > > > That line is the select on the socket. What do you see with a debug
> > > > trace on ? $ldap->debug(15);
> > > >
> > > > Also, do you have access to the server logs, if so do you see anything
> > > > there.
> > > >
> > > > Graham.
> > > >
> > > > > Know what I am doing wrong yet?
> > > > >
> > > > > Dan
> > > > >
> > > > > On Wednesday 26 March 2003 10:18 am, Graham Barr wrote:
> > > > > > On Wed, Mar 26, 2003 at 03:32:02PM +0000, Chris Ridd wrote:
> > > > > > > On 26/3/03 3:13 pm, Daniel Davidson <da...@li...> wrote:
> > > > > > > > When I remove the [$dn] and replace it with $dn then my
> > > > > > > > origional problem of the script hanging without an error
> > > > > > > > happens again.
> > > > > > > >
> > > > > > > > I'm stumped,
> > > > > > > >
> > > > > > > > Dan
> > > > > > >
> > > > > > > Oops, to set the entry's DN just pass the DN as the first arg to
> > > > > > > add and not as dn => something.
> > > > > > >
> > > > > > > $ldap->add($dn,
> > > > > > > attrs => [ blah blah ]);
> > > > > >
> > > > > > There is no difference between $ldap->ad($dn,...) and
> > > > > > $ldap->add(dn => $dn,...)
> > > > > >
> > > > > > It would be interesting to determine where it is hanging.
> > > > > >
> > > > > > Try adding this to your script.
> > > > > >
> > > > > > use Carp;
> > > > > > $SIG{USR2} = \&Carp::croak;
> > > > > >
> > > > > > Then when it hangs, find the pid and in another shell do
> > > > > >
> > > > > > kill -USR2 $pid
> > > > > >
> > > > > > You should see a stack trace on stderr.
> > > > > >
> > > > > > Although if you are on a windows box I am not sure this will work.
> > > > > >
> > > > > > Graham.
> > > > > >
> > > > > >
> > > > > >
> > > > > > -------------------------------------------------------
> > > > > > This SF.net email is sponsored by:
> > > > > > The Definitive IT and Networking Event. Be There!
> > > > > > NetWorld+Interop Las Vegas 2003 -- Register today!
> > > > > > http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
> > > > >
> > > > > -------------------------------------------------------
> > > > > This SF.net email is sponsored by:
> > > > > The Definitive IT and Networking Event. Be There!
> > > > > NetWorld+Interop Las Vegas 2003 -- Register today!
> > > > > http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by:
> The Definitive IT and Networking Event. Be There!
> NetWorld+Interop Las Vegas 2003 -- Register today!
> http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
________________________________________________________________________
|
--+--
|
|
|
Brad Diggs
E-mail: Br...@Di...
Web Site: http://www.DiggsFamily.net
The Truth is a person named Jesus
(John 14:6). Do you know Him? He
knows you and has a wonderful plan
for your life (John 20:31).
________________________________________________________________________
|