Hello All,
I am trying to setup Samba PDC with LDAP.
I installed samba-2.2.8a and openldap-2.1.19. I am using smbldap-tool that
bundles with samba-2.2.8a source, for adding user, group and computer name.
I was able to add username in ldap using smbldap-useradd.pl, but i find problem
in adding machine name.
When i try to add machine name i got following error
./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$
Can anybody help to solve this problem?
I have included the following scheme in slapd.conf
core.schema
cosine.schema
inetorgperson.schema
nis.schema
samba.schema
I have added the following basic entries in LDAP
dn: dc=xxx,dc=com
objectClass: domain
dc: xxx
dn: ou=Groups,dc=xxx,dc=com
objectClass: top
objectClass: organizationalUnit
ou: Groups
description: System Groups
dn: ou=Users,dc=xxx,dc=com
objectClass: top
objectClass: organizationalUnit
ou: Users
description: Users of the organization
dn: ou=Computers,dc=xxx,dc=com
objectClass: top
objectClass: organizationalUnit
ou: Computers
description: Windows Domain Computers
dn: cn=Domain Admins,ou=Groups,dc=xxx,dc=com
objectClass: posixGroup
gidNumber: 200
cn: Domain Admins
memberUid: administrator
description: Windows Domain Users
dn: cn=Domain Users,ou=Groups,dc=xxx,dc=com
objectClass: posixGroup
gidNumber: 201
cn: Domain Users
description: Windows Domain Users
dn: cn=Domain Guests,ou=Groups,dc=xxx,dc=com
objectClass: posixGroup
gidNumber: 202
cn: Domain Guests
description: Windows Domain Guests Users
dn: cn=Administrators,ou=Groups,dc=xxx,dc=com
description: Members can fully administer the computer/domain
objectClass: posixGroup
gidNumber: 220
cn: Administrators
description: Windows Domain Members can fully administer the computer/domain
dn: cn=Users,ou=Groups,dc=xxx,dc=com
description: Ordinary users
objectClass: posixGroup
gidNumber: 221
cn: Users
description: Windows Domain Ordinary users
dn: cn=Guests,ou=Groups,dc=xxx,dc=com
description: Users granted guest access to the computer/domain
objectClass: posixGroup
gidNumber: 222
cn: Guests
memberUid: nobody
description: Windows Domain Users granted guest access to the computer/domain
Regards
Sathi
On Fri, 2003-05-16 at 02:23, Sathi wrote:> I am trying to setup Samba PDC with LDAP.> I was able to add username in ldap using smbldap-useradd.pl, > but i find problem in adding machine name. > When i try to add machine name i got following error > > ./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$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 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@sfu.ca | Telephone Pioneers of America phone: 604.268.7509 | Amateur Radio: VA7SFU, VA7GP
Does any configration need to be done to the useradd script that sits on the BDC? So it updates correctly and allows replicaiton?? I saw somewhere how to allow user creation on the LDAP BDC, but for the life of me I can't find it, and I am wondering if that has something to do why it works on the master ldap, but not the slave Thanks> -----Original Message----- > From: Gordon Pritchard [mailto:gordonp@sfu.ca] > Sent: Friday, May 16, 2003 10:15 AM > To: Sathi > Cc: samba@lists.samba.org > Subject: Re: [Samba] Samba PDC + LDAP > > > On Fri, 2003-05-16 at 02:23, Sathi wrote: > > > I am trying to setup Samba PDC with LDAP. > > > I was able to add username in ldap using smbldap-useradd.pl, > > but i find problem in adding machine name. > > When i try to add machine name i got following error > > > > ./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$ > > 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 > > 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@sfu.ca | Telephone Pioneers of America > phone: 604.268.7509 | Amateur Radio: VA7SFU, VA7GP > > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba >
Just a shot here.
The error is saying there is a problem on line 518 on your smbldap_tools.pm
file.
You may want to take a look at the line and see if you can figure out what
the problem is.
Regards,
Jason
Original Message:
-----------------
From: Sathi sathi_linux@gmx.net
Date: Sat, 17 May 2003 09:28:28 +0530
To: gordonp@sfu.ca, samba@lists.samba.org
Subject: Re: [Samba] Samba PDC + LDAP
Hello Gord,
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$
Regards
Sathi
> On Fri, 2003-05-16 at 02:23, Sathi wrote:
>
> > I am trying to setup Samba PDC with LDAP.
>
> > I was able to add username in ldap using smbldap-useradd.pl,
> > but i find problem in adding machine name.
> > When i try to add machine name i got following error
> >
> > ./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$
>
> 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
>
> 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@sfu.ca | Telephone Pioneers of America
> phone: 604.268.7509 | Amateur Radio: VA7SFU, VA7GP
>
>
--
To unsubscribe from this list go to the following URL and read the
instructions: http://lists.samba.org/mailman/listinfo/samba
--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .