Bug 443 - net groupmap add does unnecessary ldap queries
Summary: net groupmap add does unnecessary ldap queries
Status: CLOSED FIXED
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: net utility (show other bugs)
Version: 3.0.0preX
Hardware: All Linux
: P3 normal
Target Milestone: none
Assignee: Jim McDonough
QA Contact:
URL:
Keywords:
Depends on:
Blocks: 828
  Show dependency treegraph
 
Reported: 2003-09-12 03:49 UTC by Brian Spears
Modified: 2005-11-14 09:27 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Brian Spears 2003-09-12 03:49:25 UTC
From cvs build from 09/11/03

net groupmap add sid={sid} unixgroup=test1 ntgroup=test1 -d 10 

12 pairs of group lookup's with the same obscure gidnumber occure before the
group is maped.

----

[2003/09/12 06:34:39, 5] passdb/pdb_interface.c:make_pdb_methods_name(455)
  pdb backend guest has a valid init
[2003/09/12 06:34:39, 2] passdb/pdb_ldap.c:ldapsam_search_one_group(1597)
  ldapsam_search_one_group: searching
for:[(&(objectClass=sambaGroupMapping)(gidNumber=4294967295))]
[2003/09/12 06:34:39, 4] passdb/pdb_ldap.c:ldapsam_getgroup(1742)
  ldapsam_getgroup: Did not find group
[2003/09/12 06:34:39, 2] passdb/pdb_ldap.c:ldapsam_search_one_group(1597)
  ldapsam_search_one_group: searching
for:[(&(objectClass=posixGroup)(gidNumber=4294967295))]
[2003/09/12 06:34:39, 2] passdb/pdb_ldap.c:ldapsam_search_one_group(1597)
  ldapsam_search_one_group: searching
for:[(&(objectClass=sambaGroupMapping)(gidNumber=4294967295))]
[2003/09/12 06:34:39, 4] passdb/pdb_ldap.c:ldapsam_getgroup(1742)
  ldapsam_getgroup: Did not find group
[2003/09/12 06:34:39, 2] passdb/pdb_ldap.c:ldapsam_search_one_group(1597)
  ldapsam_search_one_group: searching
for:[(&(objectClass=posixGroup)(gidNumber=4294967295))]
[2003/09/12 06:34:39, 2] passdb/pdb_ldap.c:ldapsam_search_one_group(1597)
  ldapsam_search_one_group: searching
for:[(&(objectClass=sambaGroupMapping)(gidNumber=4294967295))]
[2003/09/12 06:34:39, 4] passdb/pdb_ldap.c:ldapsam_getgroup(1742)
  ldapsam_getgroup: Did not find group
[2003/09/12 06:34:39, 2] passdb/pdb_ldap.c:ldapsam_search_one_group(1597)
  ldapsam_search_one_group: searching
for:[(&(objectClass=posixGroup)(gidNumber=4294967295))]
[2003/09/12 06:34:39, 2] passdb/pdb_ldap.c:ldapsam_search_one_group(1597)
  ldapsam_search_one_group: searching
for:[(&(objectClass=sambaGroupMapping)(gidNumber=4294967295))]
[2003/09/12 06:34:39, 4] passdb/pdb_ldap.c:ldapsam_getgroup(1742)
  ldapsam_getgroup: Did not find group
[2003/09/12 06:34:39, 2] passdb/pdb_ldap.c:ldapsam_search_one_group(1597)
  ldapsam_search_one_group: searching
for:[(&(objectClass=posixGroup)(gidNumber=4294967295))]
[2003/09/12 06:34:39, 2] passdb/pdb_ldap.c:ldapsam_search_one_group(1597)
  ldapsam_search_one_group: searching
for:[(&(objectClass=sambaGroupMapping)(gidNumber=4294967295))]
[2003/09/12 06:34:39, 4] passdb/pdb_ldap.c:ldapsam_getgroup(1742)
  ldapsam_getgroup: Did not find group
[2003/09/12 06:34:39, 2] passdb/pdb_ldap.c:ldapsam_search_one_group(1597)
  ldapsam_search_one_group: searching
for:[(&(objectClass=posixGroup)(gidNumber=4294967295))]
[2003/09/12 06:34:39, 2] passdb/pdb_ldap.c:ldapsam_search_one_group(1597)
  ldapsam_search_one_group: searching
for:[(&(objectClass=sambaGroupMapping)(gidNumber=4294967295))]
[2003/09/12 06:34:39, 4] passdb/pdb_ldap.c:ldapsam_getgroup(1742)
  ldapsam_getgroup: Did not find group
[2003/09/12 06:34:39, 2] passdb/pdb_ldap.c:ldapsam_search_one_group(1597)
  ldapsam_search_one_group: searching
for:[(&(objectClass=posixGroup)(gidNumber=4294967295))]
[2003/09/12 06:34:39, 2] passdb/pdb_ldap.c:ldapsam_search_one_group(1597)
  ldapsam_search_one_group: searching
for:[(&(objectClass=sambaGroupMapping)(gidNumber=4294967295))]
[2003/09/12 06:34:39, 4] passdb/pdb_ldap.c:ldapsam_getgroup(1742)
  ldapsam_getgroup: Did not find group
[2003/09/12 06:34:39, 2] passdb/pdb_ldap.c:ldapsam_search_one_group(1597)
  ldapsam_search_one_group: searching
for:[(&(objectClass=posixGroup)(gidNumber=4294967295))]
[2003/09/12 06:34:39, 2] passdb/pdb_ldap.c:ldapsam_search_one_group(1597)
  ldapsam_search_one_group: searching
for:[(&(objectClass=sambaGroupMapping)(gidNumber=4294967295))]
[2003/09/12 06:34:39, 4] passdb/pdb_ldap.c:ldapsam_getgroup(1742)
  ldapsam_getgroup: Did not find group
[2003/09/12 06:34:39, 2] passdb/pdb_ldap.c:ldapsam_search_one_group(1597)
  ldapsam_search_one_group: searching
for:[(&(objectClass=posixGroup)(gidNumber=4294967295))]
[2003/09/12 06:34:39, 2] passdb/pdb_ldap.c:ldapsam_search_one_group(1597)
  ldapsam_search_one_group: searching
for:[(&(objectClass=sambaGroupMapping)(gidNumber=4294967295))]
[2003/09/12 06:34:39, 4] passdb/pdb_ldap.c:ldapsam_getgroup(1742)
  ldapsam_getgroup: Did not find group
[2003/09/12 06:34:39, 2] passdb/pdb_ldap.c:ldapsam_search_one_group(1597)
  ldapsam_search_one_group: searching
for:[(&(objectClass=posixGroup)(gidNumber=4294967295))]
[2003/09/12 06:34:39, 2] passdb/pdb_ldap.c:ldapsam_search_one_group(1597)
  ldapsam_search_one_group: searching
for:[(&(objectClass=sambaGroupMapping)(gidNumber=4294967295))]
[2003/09/12 06:34:39, 4] passdb/pdb_ldap.c:ldapsam_getgroup(1742)
  ldapsam_getgroup: Did not find group
[2003/09/12 06:34:39, 2] passdb/pdb_ldap.c:ldapsam_search_one_group(1597)
  ldapsam_search_one_group: searching
for:[(&(objectClass=posixGroup)(gidNumber=4294967295))]
[2003/09/12 06:34:39, 2] passdb/pdb_ldap.c:ldapsam_search_one_group(1597)
  ldapsam_search_one_group: searching
for:[(&(objectClass=sambaGroupMapping)(gidNumber=4294967295))]
[2003/09/12 06:34:39, 4] passdb/pdb_ldap.c:ldapsam_getgroup(1742)
  ldapsam_getgroup: Did not find group
[2003/09/12 06:34:39, 2] passdb/pdb_ldap.c:ldapsam_search_one_group(1597)
  ldapsam_search_one_group: searching
for:[(&(objectClass=posixGroup)(gidNumber=4294967295))]
[2003/09/12 06:34:39, 2] passdb/pdb_ldap.c:ldapsam_search_one_group(1597)
  ldapsam_search_one_group: searching
for:[(&(objectClass=sambaGroupMapping)(gidNumber=4294967295))]
[2003/09/12 06:34:39, 4] passdb/pdb_ldap.c:ldapsam_getgroup(1742)
  ldapsam_getgroup: Did not find group
[2003/09/12 06:34:39, 2] passdb/pdb_ldap.c:ldapsam_search_one_group(1597)
  ldapsam_search_one_group: searching
for:[(&(objectClass=posixGroup)(gidNumber=4294967295))]
[2003/09/12 06:34:39, 2] passdb/pdb_ldap.c:ldapsam_search_one_group(1597)
  ldapsam_search_one_group: searching
for:[(&(objectClass=sambaGroupMapping)(gidNumber=600))]
[2003/09/12 06:34:39, 4] passdb/pdb_ldap.c:ldapsam_getgroup(1742)
  ldapsam_getgroup: Did not find group
[2003/09/12 06:34:39, 2] passdb/pdb_ldap.c:ldapsam_search_one_group(1597)
  ldapsam_search_one_group: searching
for:[(&(objectClass=posixGroup)(gidNumber=600))]
[2003/09/12 06:34:39, 10] lib/smbldap.c:smbldap_get_single_attribute(299)
  smbldap_get_single_attribute: [sambaSID] = [<does not exist>]
[2003/09/12 06:34:39, 10] lib/smbldap.c:smbldap_get_single_attribute(299)
  smbldap_get_single_attribute: [sambaGroupType] = [<does not exist>]
[2003/09/12 06:34:39, 10] lib/smbldap.c:smbldap_get_single_attribute(299)
  smbldap_get_single_attribute: [displayName] = [<does not exist>]
[2003/09/12 06:34:39, 2] passdb/pdb_ldap.c:ldapsam_add_group_mapping_entry(1929)
  ldapsam_add_group_mapping_entry: successfully modified group 600 in LDAP
Successully added group users to the mapping db
[2003/09/12 06:34:39, 2] utils/net.c:main(758)
  return code = 0
Comment 1 Gerald (Jerry) Carter (dead mail address) 2003-12-12 08:27:39 UTC
reseting target milestone.  3.0.1 has been frozen.  WIll have to 
re-evaluate these.
Comment 2 Gerald (Jerry) Carter (dead mail address) 2005-02-05 07:48:43 UTC
please restest against 3.0.11 and reopen if necessary.  Thanks.
Comment 3 Gerald (Jerry) Carter (dead mail address) 2005-02-07 09:06:09 UTC
originally reported against one of the 3.0.0rc[1-4] releases.
Cleaning up non-production versions.
Comment 4 Gerald (Jerry) Carter (dead mail address) 2005-08-24 10:17:35 UTC
sorry for the same, cleaning up the database to prevent unecessary reopens of bugs.
Comment 5 Gerald (Jerry) Carter (dead mail address) 2005-11-14 09:27:41 UTC
database cleanup