Bug 4097 - smbldap_open: cannot access LDAP when not root..
Summary: smbldap_open: cannot access LDAP when not root..
Status: RESOLVED FIXED
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: File Services (show other bugs)
Version: 3.0.23b
Hardware: x86 Linux
: P3 major
Target Milestone: none
Assignee: Jeremy Allison
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-13 05:06 UTC by spurnelle
Modified: 2006-09-20 11:49 UTC (History)
0 users

See Also:


Attachments
the samba log file of a user which have the problem (217.67 KB, application/octet-stream)
2006-09-13 05:08 UTC, spurnelle
no flags Details
Patch (1.88 KB, patch)
2006-09-13 11:31 UTC, Jeremy Allison
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description spurnelle 2006-09-13 05:06:00 UTC
Some users have problem for save a excel file or connect to home directory.
Sometimes the problem occur on profile download from server !!

In log file, we can found the horrible messages : 

[2006/09/13 07:45:09, 0] lib/smbldap.c:smbldap_open(1009)
  smbldap_open: cannot access LDAP when not root..
Comment 1 spurnelle 2006-09-13 05:08:08 UTC
Created attachment 2134 [details]
the samba log file of a user which have the problem

This is a log level 10 of a log file when a user try to open a document
Comment 2 spurnelle 2006-09-13 05:10:21 UTC
The previous version of samba is 3.0.21c.
ldap configuration has been upgraded (sambaSid eq -> sambaSid sub).
Comment 3 spurnelle 2006-09-13 05:13:23 UTC
Not using winbind, I use nss_ldap and pam_ldap for unix auth.
openLDAP version 2.3
Comment 4 Jeremy Allison 2006-09-13 10:49:31 UTC
Ok, looks like there are a bunch of pdb_XXX calls in passdb/lookup_sid.c that ar enot correctly wrapped in become_root()/unbecome_root() pairs. I'll fix this.
Jeremy.
Comment 5 Jeremy Allison 2006-09-13 11:31:31 UTC
Created attachment 2135 [details]
Patch

Please try this patch. Should apply cleanly to 3.0.23c.
Jeremy.
Comment 6 spurnelle 2006-09-20 09:53:42 UTC
It's seems to work fine.
You can close this bug
Comment 7 Jeremy Allison 2006-09-20 11:49:04 UTC
Fixed, thanks.
Jeremy.