[Date Prev][Date Next]
Re: Syncrepl only partially working
- To: firstname.lastname@example.org
- Subject: Re: Syncrepl only partially working
- From: Joshua Schaeffer <email@example.com>
- Date: Sat, 29 Oct 2016 13:25:00 -0600
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=mZ3pxO/AG6SC2uredqN41HMMbAZrTkRdYnRRFfnU+oY=; b=lBqDJPp+hGf1sh9ozXkw2RVQmTLrTOld0PqBcdci3R+d9dK7UjYS0KzVSegFhgpQ0L GGUqXwf4AtDEtVwrgKFlPXhSyCpeCwxduTWtoW8tSo4z3dip3ZwDZJIVblesZRQwufDd mT3EdsSYEcddj/ARl/pnqSQWp0SIT1HzRC//87QnibDLde3RbqyYceK9iUFs9hsePcdP 0ep7+86EpJ8jcc6WidbazOGaNkrI/O9nbAaoePaX79aXpZ3exFLa0NOJMgoCatb5de0X SkEMmKaE7565l6Wlzz1W9+kLdwOncWvDON745H5G/0JCAFtJ+FRdyxNBVfUcNsw2S+ao Vsdw==
- In-reply-to: <20161029052223.GC573@kiwi.nardis.ca>
- References: <firstname.lastname@example.org> <20161029052223.GC573@kiwi.nardis.ca>
- User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0
On 10/28/2016 11:22 PM, Ryan Tandy wrote:
On Fri, Oct 28, 2016 at 09:50:30PM -0600, Joshua Schaeffer wrote:
You may have done this - I didn't see it - but if you change the suffix this way when there are existing entries in that database, and you don't clear them out, you risk exposing yourself to issues such as <https://bugs.debian.org/546368>. If you change your suffix this way, after you do it, consider initializing a new, empty database: stop slapd, rm /var/lib/ldap/*, and start it again. I'm bringing this up because it looks like you're using the Debian/Ubuntu package, which does indeed add a couple of entries to the default database during setup.
Yes, I am using Debian's Jessie's package. So would it just be easier to not change the olcSuffix to start with?
Oct 28 21:39:02 baneling slapd: conn=4421 fd=36 TLS established tls_ssf=128 ssf=128
As I understand it, using Kerberos with OpenLDAP already gets you an encrypted transport - I believe using TLS on top of that is redundant.
Whenever I don't include the TLS portion I get a TLS confidentiality error on the provider size. I'm assuming this is because of my olcSecurity: tls=128 on the database.
Oct 28 21:39:02 baneling slapd: conn=4421 op=3 BIND authcid="ldap/koprulu.harmonywave.com@HARMONYWAVE.COM" authzid="ldap/koprulu.harmonywave.com@HARMONYWAVE.COM"
Oct 28 21:39:02 baneling slapd: conn=4421 op=3 BIND dn="uid=ldap/koprulu.harmonywave.com,cn=harmonywave.com,cn=gssapi,cn=auth" mech=GSSAPI sasl_ssf=56 ssf=128
Oct 28 21:39:02 baneling slapd: conn=4421 op=3 RESULT tag=97 err=0 text=
That looks fine, the GSSAPI bind seems to have succeeded.
So at this point, based on your ACLs above, I'd expect it to be able to read all of your data (to * by * read), except for the userPassword and shadowLastChange attributes.
Oct 28 21:39:02 baneling slapd: conn=4421 op=4 SRCH base="dc=harmonywave,dc=com" scope=2 deref=0 filter="(objectClass=*)"
Oct 28 21:39:02 baneling slapd: conn=4421 op=4 SRCH attr=* +
Oct 28 21:39:02 baneling slapd: conn=4421 op=5 UNBIND
Oct 28 21:39:02 baneling slapd: conn=4421 fd=36 closed
Odd - I was expecting to see a RESULT line there. Not sure what that means. I guess something goes wrong on the client and it aborts early?
It would be interesting to see logs from the syncrepl consumer, at loglevel 'sync', when you bring it up with an empty database.
Okay, I'll turn that on and run through the process again.
If you do an ldapsearch against the provider as anonymous, or doing a GSSAPI bind using that sevice ticket, do you see all the data returned that you expected?
If you want a decent example config to compare your work against, I would suggest rjsystems' articles:
It's a little dated, but not too badly. (For example, most or all of the bugs he mentions have since been fixed; and the hdb backend is deprecated now in favour of mdb.)
I actually used that consumer guide as my main reference. I didn't look at the provider as setting up the provider is pretty straightforward. I'll take a look at it to see if I missed any steps.