RE: [Samba] samba3+openldap:Problem during the LDAP search

2007-09-18 Thread Edmund Lin
 
Hi,
I'm sorry that I'm new to LDAP. We used to use tdbsam as the passdb backend.
I wish I had time to learn more about LDAP but I need to finish this in
these few days. I just followed the steps from Samba guide chapter 5 and got
stucked at the point of joining domain. I also use ldapsearch -x uid=root
and see the root account's information. If this is not the right way, would
you tell me how to check it and correct it?  I swear I will study LDAP in
depth after I get through this. 

And I can use the root account/password to access the share folders of the
server without joining the domain.

Thanks.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Adam Tauno Williams
Sent: Tuesday, September 18, 2007 7:22 AM
To: samba@lists.samba.org
Subject: RE: [Samba] samba3+openldap:Problem during the LDAP search

 But now another problem happened: when I tried to join a Winxp to the 
 domain, after I enter the root account and password, a popup said 
 logon failure:unknown user name or bad password.
 I can see root account using slapcat. 

Why are you using slapcat to see if there is a root account in the Dit?
This seems like an alarm-bell that you need to slow down and learn a little
bit more about LDAP and the LDAP tools before proceeding.

 I used smbldap-passwd to change the
 root's password.
 If I change the passdb backend to tdbsam, I can join the domain.
 Any idea?

Everything with the tdbsam is pretty much automated for you;  to work with
an LDAP SAM you need more glue and to get that to work you need a working
understanding of the different layers.

Do you have an add user script setup?

--
Adam Tauno Williams, Network  Systems Administrator Consultant -
http://www.whitemiceconsulting.com
Developer - http://www.opengroupware.org

--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba

--
This message has been scanned for viruses and dangerous content by
MailScanner, and is believed to be clean.



-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


RE: [Samba] samba3+openldap:Problem during the LDAP search

2007-09-16 Thread Edmund Lin
Hi,
I'm sorry I don't understand the word Dit.
If you mean the account name of linux, yes there is a user root. And all I
did is under the root account.  

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Adam Tauno Williams
Sent: Thursday, September 13, 2007 4:50 PM
To: samba@lists.samba.org
Subject: Re: [Samba] samba3+openldap:Problem during the LDAP search

 I'm trying to use samba3+openldap as our PDC. 
 I installed the server using CentOS4.4 single service CD and then use 
 yum install openldap-servers to install openldap server.
 I already ran smbpasswd -w secret.
 When I invoked smbpasswd -a root the following error showed up:
 [EMAIL PROTECTED] samba]# smbpasswd -a root
 smbldap_search_suffix: Problem during the LDAP search:  (No such 
 object) New SMB password:
 Retype new SMB password:
 smbldap_search_suffix: Problem during the LDAP search:  (No such 
 object)
 ldapsam_search_one_group: Problem during the LDAP search: LDAP error:  
 (No such object)
 smbldap_search_suffix: Problem during the LDAP search:  (No such 
 object) Failed to add entry for user root.
 Failed to modify password entry for user root

Is there a user root in your Dit?

--
Adam Tauno Williams, Network  Systems Administrator Consultant -
http://www.whitemiceconsulting.com
Developer - http://www.opengroupware.org

--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba

--
This message has been scanned for viruses and dangerous content by
MailScanner, and is believed to be clean.



-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] samba3+openldap:Problem during the LDAP search

2007-09-13 Thread Edmund Lin
 SRCH
base=dc=pangeo,dc=com scope=2 deref=0
filter=((uid=root)(objectClass=sambaSamAccount))
Sep 12 16:47:44 localhost slapd[31815]: conn=2 op=4 SRCH attr=uid uidNumber
gidNumber homeDirectory sambaPwdLastSet sambaPwdCanChange sambaPwdMustChange
sambaLogonTime sambaLogoffTime sambaKickoffTime cn displayName
sambaHomeDrive sambaHomePath sambaLogonScript sambaProfilePath description
sambaUserWorkstations sambaSID sambaPrimaryGroupSID sambaLMPassword
sambaNTPassword sambaDomainName objectClass sambaAcctFlags sambaMungedDial
sambaBadPasswordCount sambaBadPasswordTime sambaPasswordHistory
modifyTimestamp sambaLogonHours
Sep 12 16:47:44 localhost slapd[31815]: conn=2 op=4 SEARCH RESULT tag=101
err=32 nentries=0 text=
Sep 12 16:47:44 localhost slapd[31815]: conn=2 fd=12 closed
[EMAIL PROTECTED] etc]#

Can anyone help me with it?
Thank you.


Edmund Lin



-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba