[Samba] net: ../../../libraries/liblber/decode.c:644: ber_scanf: Assertion `((ber)->ber_opts.lbo_valid==0x2)' failed.

John H. mrmailer at myway.com
Mon Jan 26 22:40:49 GMT 2004


i thought i had, but apparently not, so i did that and this is what i have now(as you can see, there are two entries)


net groupmap list -s /etc/samba/smb.ldap
Domain Admins (S-1-5-21-4070452498-3149834983-2923667569-512) -> 512
Domain Guests (S-1-5-21-4070452498-3149834983-2923667569-514) -> 514
Administrators (S-1-5-21-4070452498-3149834983-2923667569-544) -> 544
Guests (S-1-5-21-4070452498-3149834983-2923667569-546) -> 546
Power Users (S-1-5-21-4070452498-3149834983-2923667569-547) -> 547
Account Operators (S-1-5-21-4070452498-3149834983-2923667569-548) -> 548
Server Operators (S-1-5-21-4070452498-3149834983-2923667569-549) -> 549
Print Operators (S-1-5-21-4070452498-3149834983-2923667569-550) -> 550
Backup Operators (S-1-5-21-4070452498-3149834983-2923667569-551) -> 551
Replicator (S-1-5-21-4070452498-3149834983-2923667569-552) -> 552
Domain Computers (S-1-5-21-4070452498-3149834983-2923667569-553) -> 553
Domain Admins (S-1-5-21-4070452498-3149834983-2923667569-512) -> ntadmin


is that ok?

I wanted to add Domain Power users, and did this...


 net groupmap add ntgroup="Domain Power Users" unixgroup=users sid=S-1-5-21-4070452498-3149834983-2923667569-1201 -s /etc/samba/smb.ldap

adding entry for group Domain Power Users failed!


debugging says...(do i need to add it another way?)

[2004/01/26 16:40:21, 5] passdb/pdb_interface.c:make_pdb_methods_name(431)
  Attempting to find an passdb backend to match ldapsam:ldap://127.0.0.1 (ldapsam)
[2004/01/26 16:40:21, 5] passdb/pdb_interface.c:make_pdb_methods_name(452)
  Found pdb backend ldapsam
[2004/01/26 16:40:21, 2] lib/smbldap.c:smbldap_search_domain_info(1295)
  Searching for:[(&(objectClass=sambaDomain)(sambaDomainName=LAMP))]
[2004/01/26 16:40:21, 2] lib/smbldap.c:smbldap_search_suffix(1066)
  smbldap_search_suffix: searching for:[(&(objectClass=sambaDomain)(sambaDomainName=LAMP))]
[2004/01/26 16:40:21, 10] lib/smbldap.c:smbldap_open_connection(527)
  smbldap_open_connection: ldap://127.0.0.1
[2004/01/26 16:40:21, 2] lib/smbldap.c:smbldap_open_connection(623)
  smbldap_open_connection: connection opened
[2004/01/26 16:40:21, 10] lib/smbldap.c:smbldap_connect_system(750)
  ldap_connect_system: Binding to ldap server ldap://127.0.0.1 as "cn=Manager,dc=INTRANET"
[2004/01/26 16:40:21, 3] lib/smbldap.c:smbldap_connect_system(785)
  ldap_connect_system: succesful connection to the LDAP server
[2004/01/26 16:40:21, 4] lib/smbldap.c:smbldap_open(836)
  The LDAP server is succesful connected
[2004/01/26 16:40:21, 5] passdb/pdb_interface.c:make_pdb_methods_name(455)
  pdb backend ldapsam:ldap://127.0.0.1 has a valid init
[2004/01/26 16:40:21, 5] passdb/pdb_interface.c:make_pdb_methods_name(431)
  Attempting to find an passdb backend to match guest (guest)
[2004/01/26 16:40:21, 5] passdb/pdb_interface.c:make_pdb_methods_name(452)
  Found pdb backend guest
[2004/01/26 16:40:21, 5] passdb/pdb_interface.c:make_pdb_methods_name(455)
  pdb backend guest has a valid init
[2004/01/26 16:40:21, 2] passdb/pdb_ldap.c:ldapsam_search_one_group(1597)
  ldapsam_search_one_group: searching for:[(&(objectClass=sambaGroupMapping)(gidNumber=4294967295))]
[2004/01/26 16:40:21, 4] passdb/pdb_ldap.c:ldapsam_getgroup(1742)
  ldapsam_getgroup: Did not find group
[2004/01/26 16:40:21, 2] passdb/pdb_ldap.c:ldapsam_search_one_group(1597)
  ldapsam_search_one_group: searching for:[(&(objectClass=posixGroup)(gidNumber=4294967295))]
[2004/01/26 16:40:21, 2] passdb/pdb_ldap.c:ldapsam_search_one_group(1597)
  ldapsam_search_one_group: searching for:[(&(objectClass=sambaGroupMapping)(gidNumber=4294967295))]
[2004/01/26 16:40:21, 4] passdb/pdb_ldap.c:ldapsam_getgroup(1742)
  ldapsam_getgroup: Did not find group
[2004/01/26 16:40:21, 2] passdb/pdb_ldap.c:ldapsam_search_one_group(1597)
  ldapsam_search_one_group: searching for:[(&(objectClass=posixGroup)(gidNumber=4294967295))]
[2004/01/26 16:40:21, 2] passdb/pdb_ldap.c:ldapsam_search_one_group(1597)
  ldapsam_search_one_group: searching for:[(&(objectClass=sambaGroupMapping)(gidNumber=4294967295))]
[2004/01/26 16:40:21, 4] passdb/pdb_ldap.c:ldapsam_getgroup(1742)
  ldapsam_getgroup: Did not find group
[2004/01/26 16:40:21, 2] passdb/pdb_ldap.c:ldapsam_search_one_group(1597)
  ldapsam_search_one_group: searching for:[(&(objectClass=posixGroup)(gidNumber=4294967295))]
[2004/01/26 16:40:21, 2] passdb/pdb_ldap.c:ldapsam_search_one_group(1597)
  ldapsam_search_one_group: searching for:[(&(objectClass=sambaGroupMapping)(gidNumber=4294967295))]
[2004/01/26 16:40:21, 4] passdb/pdb_ldap.c:ldapsam_getgroup(1742)
  ldapsam_getgroup: Did not find group
[2004/01/26 16:40:21, 2] passdb/pdb_ldap.c:ldapsam_search_one_group(1597)
  ldapsam_search_one_group: searching for:[(&(objectClass=posixGroup)(gidNumber=4294967295))]
[2004/01/26 16:40:21, 2] passdb/pdb_ldap.c:ldapsam_search_one_group(1597)
  ldapsam_search_one_group: searching for:[(&(objectClass=sambaGroupMapping)(gidNumber=4294967295))]
[2004/01/26 16:40:21, 4] passdb/pdb_ldap.c:ldapsam_getgroup(1742)
  ldapsam_getgroup: Did not find group
[2004/01/26 16:40:21, 2] passdb/pdb_ldap.c:ldapsam_search_one_group(1597)
  ldapsam_search_one_group: searching for:[(&(objectClass=posixGroup)(gidNumber=4294967295))]
[2004/01/26 16:40:21, 2] passdb/pdb_ldap.c:ldapsam_search_one_group(1597)
  ldapsam_search_one_group: searching for:[(&(objectClass=sambaGroupMapping)(gidNumber=4294967295))]
[2004/01/26 16:40:21, 4] passdb/pdb_ldap.c:ldapsam_getgroup(1742)
  ldapsam_getgroup: Did not find group
[2004/01/26 16:40:21, 2] passdb/pdb_ldap.c:ldapsam_search_one_group(1597)
  ldapsam_search_one_group: searching for:[(&(objectClass=posixGroup)(gidNumber=4294967295))]
[2004/01/26 16:40:21, 2] passdb/pdb_ldap.c:ldapsam_search_one_group(1597)
  ldapsam_search_one_group: searching for:[(&(objectClass=sambaGroupMapping)(gidNumber=4294967295))]
[2004/01/26 16:40:21, 4] passdb/pdb_ldap.c:ldapsam_getgroup(1742)
  ldapsam_getgroup: Did not find group
[2004/01/26 16:40:21, 2] passdb/pdb_ldap.c:ldapsam_search_one_group(1597)
  ldapsam_search_one_group: searching for:[(&(objectClass=posixGroup)(gidNumber=4294967295))]
[2004/01/26 16:40:21, 2] passdb/pdb_ldap.c:ldapsam_search_one_group(1597)
  ldapsam_search_one_group: searching for:[(&(objectClass=sambaGroupMapping)(gidNumber=4294967295))]
[2004/01/26 16:40:21, 4] passdb/pdb_ldap.c:ldapsam_getgroup(1742)
  ldapsam_getgroup: Did not find group
[2004/01/26 16:40:21, 2] passdb/pdb_ldap.c:ldapsam_search_one_group(1597)
  ldapsam_search_one_group: searching for:[(&(objectClass=posixGroup)(gidNumber=4294967295))]
[2004/01/26 16:40:21, 2] passdb/pdb_ldap.c:ldapsam_search_one_group(1597)
  ldapsam_search_one_group: searching for:[(&(objectClass=sambaGroupMapping)(gidNumber=4294967295))]
[2004/01/26 16:40:21, 4] passdb/pdb_ldap.c:ldapsam_getgroup(1742)
  ldapsam_getgroup: Did not find group
[2004/01/26 16:40:21, 2] passdb/pdb_ldap.c:ldapsam_search_one_group(1597)
  ldapsam_search_one_group: searching for:[(&(objectClass=posixGroup)(gidNumber=4294967295))]
[2004/01/26 16:40:21, 2] passdb/pdb_ldap.c:ldapsam_search_one_group(1597)
  ldapsam_search_one_group: searching for:[(&(objectClass=sambaGroupMapping)(gidNumber=4294967295))]
[2004/01/26 16:40:21, 4] passdb/pdb_ldap.c:ldapsam_getgroup(1742)
  ldapsam_getgroup: Did not find group
[2004/01/26 16:40:21, 2] passdb/pdb_ldap.c:ldapsam_search_one_group(1597)
  ldapsam_search_one_group: searching for:[(&(objectClass=posixGroup)(gidNumber=4294967295))]
[2004/01/26 16:40:21, 2] passdb/pdb_ldap.c:ldapsam_search_one_group(1597)
  ldapsam_search_one_group: searching for:[(&(objectClass=sambaGroupMapping)(gidNumber=4294967295))]
[2004/01/26 16:40:21, 4] passdb/pdb_ldap.c:ldapsam_getgroup(1742)
  ldapsam_getgroup: Did not find group
[2004/01/26 16:40:21, 2] passdb/pdb_ldap.c:ldapsam_search_one_group(1597)
  ldapsam_search_one_group: searching for:[(&(objectClass=posixGroup)(gidNumber=4294967295))]
[2004/01/26 16:40:21, 2] passdb/pdb_ldap.c:ldapsam_search_one_group(1597)
  ldapsam_search_one_group: searching for:[(&(objectClass=sambaGroupMapping)(gidNumber=4294967295))]
[2004/01/26 16:40:21, 4] passdb/pdb_ldap.c:ldapsam_getgroup(1742)
  ldapsam_getgroup: Did not find group
[2004/01/26 16:40:21, 2] passdb/pdb_ldap.c:ldapsam_search_one_group(1597)
  ldapsam_search_one_group: searching for:[(&(objectClass=posixGroup)(gidNumber=4294967295))]
[2004/01/26 16:40:21, 2] passdb/pdb_ldap.c:ldapsam_search_one_group(1597)
  ldapsam_search_one_group: searching for:[(&(objectClass=sambaGroupMapping)(gidNumber=100))]
[2004/01/26 16:40:21, 4] passdb/pdb_ldap.c:ldapsam_getgroup(1742)
  ldapsam_getgroup: Did not find group
[2004/01/26 16:40:21, 2] passdb/pdb_ldap.c:ldapsam_search_one_group(1597)
  ldapsam_search_one_group: searching for:[(&(objectClass=posixGroup)(gidNumber=100))]
[2004/01/26 16:40:21, 10] intl/lang_tdb.c:lang_tdb_init(135)
adding entry for group Domain Power Users failed!
  lang_tdb_init: /usr/lib/samba/en_US.UTF-8.msg: No such file or directoryreturn code = -1




 --- On Mon 01/26, Gerald (Jerry) Carter < jerry at samba.org > wrote:
From: Gerald (Jerry) Carter [mailto: jerry at samba.org]
To: mrmailer at myway.com
     Cc: samba at lists.samba.org
Date: Mon, 26 Jan 2004 16:27:49 -0600
Subject: Re: [Samba] net: ../../../libraries/liblber/decode.c:644: ber_scanf: Assertion `((ber)->ber_opts.lbo_valid==0x2)' failed.

-----BEGIN PGP SIGNED MESSAGE-----<br>Hash: SHA1<br><br>John H. wrote:<br><br>| net-3.2 groupmap modify ntgroup="Domain Admins" unixgroup="ntadmin"<br>|   -s /etc/samba/smb.ldap<br>|   ldapsam_update_group_mapping_entry: failed to<br>|   modify group 504 error: attribute 'sambaSID' not<br>|   allowed (Object class violation)<br>|   Could not update group database<br><br>Do you already have a group mapping in LDAP ?  If not,<br>use 'net groupmap add' instead of modify.<br><br><br><br><br>cheers, jerry<br>-----BEGIN PGP SIGNATURE-----<br>Version: GnuPG v1.2.1 (GNU/Linux)<br>Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org<br><br>iD8DBQFAFZRlIR7qMdg1EfYRAkeOAJ9mDl2xJxO9JQ44xrtJQHDINth6lgCcCenf<br>KcE/o0YF616z7BDWUM0QmNQ=<br>=3Uun<br>-----END PGP SIGNATURE-----<br><br>

_______________________________________________
No banners. No pop-ups. No kidding.
Introducing My Way - http://www.myway.com


More information about the samba mailing list