Bug 4215 - Errors in logs when joining workstations to domain
Errors in logs when joining workstations to domain
Status: NEW
Product: Samba 3.0
Classification: Unclassified
Component: Domain Control
3.0.23d
x86 Linux
: P3 normal
: none
Assigned To: Samba Bugzilla Account
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-11-08 11:35 UTC by OTT Herve
Modified: 2008-07-01 11:52 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description OTT Herve 2006-11-08 11:35:24 UTC
Hi,

I'm using a samba 3.0.23c PDC with ldapsam.

When I join a workstation to the domain with a user,
the join works but in the logs I see the following message :

lib/smbldap.c:smbldap_open(1009)
smbldap_open: cannot access LDAP when not root..

It appears 4 times each time I want to join a machine.
When I use root to join the domain there is no message.

I have a level 10 log, if you want it give me an email adress to
send it (I don't have the rights to publish it)


I also have, randomly, 2 messages which follow each other but not related to domain joins. It appears even when there is nobody at the office. I have upped log level to 10 and will send you the log when it appears again. Do I have to open a new bug for this one ?


Sincerely,
   Herve OTT
Comment 1 OTT Herve 2006-11-08 11:58:49 UTC
When I say "join with a user", it's a user with SeMachineAccountPrivilege of course :)
Comment 2 OTT Herve 2006-11-09 09:31:41 UTC
This is an extract from the level 10 logs :

[2006/11/09 14:27:02, 10] lib/account_pol.c:account_policy_cache_timestamp(198)
  account policy cache lastset was: jeu, 09 nov 2006 11:37:40 CET
[2006/11/09 14:27:02, 10] lib/account_pol.c:cache_account_policy_get(466)
  cache_account_policy_get: no valid cache entry (cache expired)
[2006/11/09 14:27:02, 10] passdb/pdb_ldap.c:ldapsam_get_account_policy_from_ldap(3528)
  ldapsam_get_account_policy_from_ldap
[2006/11/09 14:27:02, 5] lib/smbldap.c:smbldap_search_ext(1179)
  smbldap_search_ext: base => [sambaDomainName=PORTAIL,dc=portail,dc=noisiel,dc=dgi], filter => [(objectclass=*)], scope => [0]
[2006/11/09 14:27:02, 0] lib/smbldap.c:smbldap_open(1009)
  smbldap_open: cannot access LDAP when not root..
[2006/11/09 14:27:02, 10] passdb/pdb_ldap.c:ldapsam_get_account_policy(3613)
  ldapsam_get_account_policy: failed to retrieve from ldap
[2006/11/09 14:27:02, 10] passdb/pdb_ldap.c:ldapsam_set_account_policy_in_ldap(3461)
  ldapsam_set_account_policy_in_ldap
[2006/11/09 14:27:02, 5] lib/smbldap.c:smbldap_modify(1363)
  smbldap_modify: dn => [sambaDomainName=PORTAIL,dc=portail,dc=noisiel,dc=dgi]
[2006/11/09 14:27:02, 0] lib/smbldap.c:smbldap_open(1009)
  smbldap_open: cannot access LDAP when not root..

Comment 3 Jeremy Allison 2006-11-10 18:06:56 UTC
I believe this has been fixed for 3.0.23d.
Jeremy.
Comment 4 OTT Herve 2006-11-17 10:23:47 UTC
I just installed 3.0.23d and problems are still there :(