[Samba] Samba PDC + LDAP
Sathi
sathi_linux at gmx.net
Wed May 21 04:31:15 GMT 2003
Hello Gord,
Thanks i have edited the smbldap_tools.pm file and now i am not getting any
error.
But still i find problem in adding the machine name.
I am getting following error while trying to add the machine name
# ./smbldap-useradd.pl -w test
ldapadd: update failed: uid=test$,ou=Computers,dc=xxx,dc=com
ldap_add: Object class violation (65)
additional info: no structural object class provided
./smbldap-useradd.pl: error while adding posix account to machine test$
Regards
Sathi
> Late last week, I (Gordon Pritchard <gordonp at sfu.ca> wrote:
>
> > > When you use idealx's tools, don't put the '$' at the end of the
> > > machine-name; it will be done for you. So, your syntax should be:
> > >
> > > ./smbldap-useradd.pl -w test
>
>
> On Fri, 2003-05-16 at 20:58, Sathi wrote:
>
> > Thanks but i got same error when trying to add a machine name without
"$"
> >
> > ./smbldap-useradd.pl -w test
> > Malformed UTF-8 character (unexpected continuation byte 0xab, with no
> > preceding start byte) at smbldap_tools.pm line 518.
> > Malformed UTF-8 character (unexpected continuation byte 0xbb, with no
> > preceding start byte) at smbldap_tools.pm line 518.
> > ldapadd: update failed: uid=test$,ou=Computers,dc=xxx,dc=com
> > ldap_add: Object class violation (65)
> > additional info: no structural object class provided
> > ./smbldap-useradd.pl: error while adding posix account to machine test$
>
>
> Sorry for the slow reply, Sathi. This past weekend was an extended
> (Canadian) holiday, and I was out of town.
>
> Now that I see your error, that reminds me: I did also experience the
> same problem!! There is a character in the Idealx script which is not
> UTF-8 clean. I remember mentioning this to them many months ago, but I
> guess they haven't updated anything.
>
> The nice thing is that the error message tells you where the problem
> lies. I recall opening the offending file (smbldap_tools.pm - my copy
> is in /usr/local/sbin). I used emacs, then scrolled down to around line
> 518. I don't think the error was *exactly* on Line 518, but you will
> see something that looks 'funny' - your editor won't properly display
> the offending character.
>
> In fact, I just downloaded the Idealx stuff so I could check. Emacs
> tells me the problem actually lies on line 520: if you look at the
> comment, you'll see they used a double-angle-bracket for $filename. I
> see that my "fixed" version uses a single angle-bracket at each side.
> But hey - it's only a user-comment, right... ;-(
>
> HTH,
> -Gord
>
> --
> Gordon Pritchard, P.Eng. | Institute of Electrical and
> Research Labs Manager | Electronics Engineers
> Simon Fraser University, Surrey | Quarter Century Wireless Ass'n
> gordonp at sfu.ca | Telephone Pioneers of America
> phone: 604.268.7509 | Amateur Radio: VA7SFU, VA7GP
>
>
More information about the samba
mailing list