Ingo Voss wrote:
>
>
> Am 17.10.2015 um 20:58 schrieb Howard Chu:
>> ingo.voss(a)gmail.com wrote:
>>> Full_Name: Ingo Voss
>>> Version:
>>> OS:
>>> URL: ftp://ftp.openldap.org/incoming/contrib-slapd-modules-unicodepw.tar
>>> Submission from: (NULL) (78.53.86.212)
>>>
>>>
>>> Hello,
>>>
>>> I wrote a small overlay, that restricts all LDAP modification requests, so
>>> that
>>> only password changes for MS unicodePwd are possible.
>>> All other LDAP requests will not be observed.
>>> If someone needs a read-only proxy (in a e.g. dmz) for an MS Active Directory,
>>> but password changes must be possible, then unicodepw is the right overlay.
>>> For more informations, a manual page is included.
>>
>> If you want a read-only proxy, shouldn't this overlay also intercept and
>> deny all Add/Delete/ModDN requests?
>>
>
> Yes, you are right! But such overlay (denyop) exist already and it is working
> well.
> The manual page for unicodepw refers to denyop and describes the complete
> configuration in detail.
OK.
This code is full of C++ comments. OpenLDAP uses C comments only.
This code is full of SPACEs for indentation. OpenLDAP uses TAB characters for
indentation, with 4-column tab stops.
Your debug messages are using STATS debug level. STATS is reserved for LDAP
operation/parameter logging only and is the default level. Code should be
silent at the default level unless major errors have occurred.
This code cannot be accepted in its current form.
--
-- Howard Chu
CTO, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc/
Chief Architect, OpenLDAP http://www.openldap.org/project/
Michael Ströder wrote:
> hyc(a)symas.com wrote:
>> Michael Ströder wrote:
>>> hyc(a)symas.com wrote:
>>>> Michael Ströder wrote:
>>>>> hyc(a)symas.com wrote:
>>>>>> Generating a new contextCSN at startup is of questionable worth. We discussed
>>>>>> this a bit 'way back in 2004
>>>>>> http://www.openldap.org/lists/openldap-devel/200408/msg00035.html Perhaps we
>>>>>> should just not do it;
>>>>>
>>>>> +1
>>>>>
>>>>>> if a single-master provider starts up empty and a
>>>>>> consumer tries to talk to it and both have an empty cookie, the provider
>>>>>> should just respond "you're up to date".
>>>>>
>>>>> Why not return an error to the consumer?
>>>>
>>>> Typically if a consumer receives an error it will disconnect and retry later.
>>>> There's not much point making the consumer reconnect - which may be costly for
>>>> a TCP session. If it's a refreshAndPersist consumer, it just needs to hang on
>>>> and wait for some real data to arrive.
>>>
>>> Is the cost really that high compared to the rest of the initialization?
>>
>> I meant "TLS" there.
>
> As I'm solely using TLS secured LDAP connection *everywhere* I also implied
> TLS. Still I assume opening the syncrepl connection a few times again is
> nothing compared to the majority LDAP clients opening connections for every
> single LDAP simple bind request. So if it simplifies error handling which
> likely results in more robustness, I'd strongly prefer that.
As it turns out, it greatly simplified things to handle this condition as you
suggest. Fixed now in git master.
--
-- Howard Chu
CTO, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc/
Chief Architect, OpenLDAP http://www.openldap.org/project/
------=_Part_1734554_1852910388.1445610910369
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Dear=C2=A0Ciao, Michael
could you please refer any link ? =C2=A0i can not find anything regarding t=
his issue . please ..=C2=A0
=20
On Friday, October 23, 2015 3:10 AM, Michael Str=C3=B6der <michael@str=
oeder.com> wrote:
=20
ikshafi(a)yahoo.com wrote:
> Full_Name: sifat ara nil
> Version: 2.4.39
> OS: centros
> URL: ftp://ftp.openldap.org/incoming/
> Submission from: (NULL) (103.230.63.94)
>=20
>=20
> I have create a Ldap server for Email address book purpose .Its running w=
ell and
> i am able to search by name . But it's not showing all address in microso=
ft
> outlook address book without search . how can i make it visible .=C2=A0=
=20
The ITS is for reporting bugs only.
You can ask usage questions on the openldap-technical mailing list.
For Outlook try to search for suitable LDAP attribute mappings.
It has been discussed numerous times before.
Ciao, Michael.
------=_Part_1734554_1852910388.1445610910369
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
<html><head></head><body><div style=3D"color:#000; background-color:#fff; f=
ont-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, =
sans-serif;font-size:16px"><div id=3D"yui_3_16_0_1_1445610560158_2897" dir=
=3D"ltr"><font face=3D"times new roman, new york, times, serif" id=3D"yui_3=
_16_0_1_1445610560158_3048">Dear <span style=3D"font-size: 13px;" id=
=3D"yui_3_16_0_1_1445610560158_2920" class=3D"">Ciao, M</span><span style=
=3D"font-size: 13px;" class=3D"" id=3D"yui_3_16_0_1_1445610560158_3035"><fo=
nt id=3D"yui_3_16_0_1_1445610560158_3034">icha</font></span><span style=3D"=
font-size: 13px;" class=3D"">el</span></font></div><div id=3D"yui_3_16_0_1_=
1445610560158_2896"><font face=3D"times new roman, new york, times, serif">=
<br></font></div><div dir=3D"ltr" id=3D"yui_3_16_0_1_1445610560158_2921"><f=
ont face=3D"times new roman, new york, times, serif" id=3D"yui_3_16_0_1_144=
5610560158_3050">could you please refer any link ? i can not find any=
thing regarding this issue . please .. </font><br></div> <br><div cla=
ss=3D"qtdSeparateBR"><br><br></div><div class=3D"yahoo_quoted" style=3D"dis=
play: block;"> <div style=3D"font-family: HelveticaNeue, Helvetica Neue, He=
lvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div style=3D=
"font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grand=
e, sans-serif; font-size: 16px;"> <div dir=3D"ltr"> <font size=3D"2" face=
=3D"Arial"> On Friday, October 23, 2015 3:10 AM, Michael Str=C3=B6der <m=
ichael(a)stroeder.com> wrote:<br> </font> </div> <br><br> <div class=3D"y=
_msg_container"><a ymailto=3D"mailto:ikshafi@yahoo.com" href=3D"mailto:iksh=
afi(a)yahoo.com">ikshafi(a)yahoo.com</a> wrote:<br>> Full_Name: sifat ara ni=
l<br>> Version: 2.4.39<br>> OS: centros<br>> URL: <a href=3D"ftp:/=
/ftp.openldap.org/incoming/" target=3D"_blank">ftp://ftp.openldap.org/incom=
ing/</a><br>> Submission from: (NULL) (103.230.63.94)<br>> <br>> <=
br>> I have create a Ldap server for Email address book purpose .Its run=
ning well and<br>> i am able to search by name . But it's not showing al=
l address in microsoft<br>> outlook address book without search . how ca=
n i make it visible . <br><br>The ITS is for reporting bugs only.<br=
>You can ask usage questions on the openldap-technical mailing list.<br><br=
>For Outlook try to search for suitable LDAP attribute mappings.<br>It has =
been discussed numerous times before.<br><br>Ciao, Michael.<br><br><br></di=
v> </div> </div> </div></div></body></html>
------=_Part_1734554_1852910388.1445610910369--
hyc(a)symas.com wrote:
> Michael Ströder wrote:
>> hyc(a)symas.com wrote:
>>> Michael Ströder wrote:
>>>> hyc(a)symas.com wrote:
>>>>> Generating a new contextCSN at startup is of questionable worth. We discussed
>>>>> this a bit 'way back in 2004
>>>>> http://www.openldap.org/lists/openldap-devel/200408/msg00035.html Perhaps we
>>>>> should just not do it;
>>>>
>>>> +1
>>>>
>>>>> if a single-master provider starts up empty and a
>>>>> consumer tries to talk to it and both have an empty cookie, the provider
>>>>> should just respond "you're up to date".
>>>>
>>>> Why not return an error to the consumer?
>>>
>>> Typically if a consumer receives an error it will disconnect and retry later.
>>> There's not much point making the consumer reconnect - which may be costly for
>>> a TCP session. If it's a refreshAndPersist consumer, it just needs to hang on
>>> and wait for some real data to arrive.
>>
>> Is the cost really that high compared to the rest of the initialization?
>
> I meant "TLS" there.
As I'm solely using TLS secured LDAP connection *everywhere* I also implied
TLS. Still I assume opening the syncrepl connection a few times again is
nothing compared to the majority LDAP clients opening connections for every
single LDAP simple bind request. So if it simplifies error handling which
likely results in more robustness, I'd strongly prefer that.
Ciao, Michael.
Michael Ströder wrote:
> hyc(a)symas.com wrote:
>> Michael Ströder wrote:
>>> hyc(a)symas.com wrote:
>>>> Generating a new contextCSN at startup is of questionable worth. We discussed
>>>> this a bit 'way back in 2004
>>>> http://www.openldap.org/lists/openldap-devel/200408/msg00035.html Perhaps we
>>>> should just not do it;
>>>
>>> +1
>>>
>>>> if a single-master provider starts up empty and a
>>>> consumer tries to talk to it and both have an empty cookie, the provider
>>>> should just respond "you're up to date".
>>>
>>> Why not return an error to the consumer?
>>
>> Typically if a consumer receives an error it will disconnect and retry later.
>> There's not much point making the consumer reconnect - which may be costly for
>> a TCP session. If it's a refreshAndPersist consumer, it just needs to hang on
>> and wait for some real data to arrive.
>
> Is the cost really that high compared to the rest of the initialization?
I meant "TLS" there.
--
-- Howard Chu
CTO, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc/
Chief Architect, OpenLDAP http://www.openldap.org/project/
hyc(a)symas.com wrote:
> Michael Ströder wrote:
>> hyc(a)symas.com wrote:
>>> Generating a new contextCSN at startup is of questionable worth. We discussed
>>> this a bit 'way back in 2004
>>> http://www.openldap.org/lists/openldap-devel/200408/msg00035.html Perhaps we
>>> should just not do it;
>>
>> +1
>>
>>> if a single-master provider starts up empty and a
>>> consumer tries to talk to it and both have an empty cookie, the provider
>>> should just respond "you're up to date".
>>
>> Why not return an error to the consumer?
>
> Typically if a consumer receives an error it will disconnect and retry later.
> There's not much point making the consumer reconnect - which may be costly for
> a TCP session. If it's a refreshAndPersist consumer, it just needs to hang on
> and wait for some real data to arrive.
Is the cost really that high compared to the rest of the initialization?
>> Does the provider know whether it's running as single-master?
>
> Generally yes. A single-master setup has serverID=0.
Hmm, this introduces more semantics on serverID. I have some doubts about
corner-cases.
Maybe I misunderstood but IMO the issue was about changing a provider to a MMR
replica which would need serverID!=0 anyway.
Ciao, Michael.
Michael Ströder wrote:
> hyc(a)symas.com wrote:
>> Generating a new contextCSN at startup is of questionable worth. We discussed
>> this a bit 'way back in 2004
>> http://www.openldap.org/lists/openldap-devel/200408/msg00035.html Perhaps we
>> should just not do it;
>
> +1
>
>> if a single-master provider starts up empty and a
>> consumer tries to talk to it and both have an empty cookie, the provider
>> should just respond "you're up to date".
>
> Why not return an error to the consumer?
Typically if a consumer receives an error it will disconnect and retry later.
There's not much point making the consumer reconnect - which may be costly for
a TCP session. If it's a refreshAndPersist consumer, it just needs to hang on
and wait for some real data to arrive.
> Does the provider know whether it's running as single-master?
Generally yes. A single-master setup has serverID=0.
--
-- Howard Chu
CTO, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc/
Chief Architect, OpenLDAP http://www.openldap.org/project/
This is a cryptographically signed message in MIME format.
--------------ms040207060304010508030608
Content-Type: text/plain; charset=ISO-8859-2
Content-Transfer-Encoding: quoted-printable
hyc(a)symas.com wrote:
> Generating a new contextCSN at startup is of questionable worth. We dis=
cussed=20
> this a bit 'way back in 2004=20
> http://www.openldap.org/lists/openldap-devel/200408/msg00035.html Perha=
ps we=20
> should just not do it;
+1
> if a single-master provider starts up empty and a=20
> consumer tries to talk to it and both have an empty cookie, the provide=
r=20
> should just respond "you're up to date".
Why not return an error to the consumer?
Does the provider know whether it's running as single-master?
Ciao, Michael.
--------------ms040207060304010508030608
Content-Type: application/pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
Content-Description: S/MIME Cryptographic Signature
MIAGCSqGSIb3DQEHAqCAMIACAQExDzANBglghkgBZQMEAgEFADCABgkqhkiG9w0BBwEAAKCC
DGYwggYqMIIFEqADAgECAgMPVg4wDQYJKoZIhvcNAQELBQAwgYwxCzAJBgNVBAYTAklMMRYw
FAYDVQQKEw1TdGFydENvbSBMdGQuMSswKQYDVQQLEyJTZWN1cmUgRGlnaXRhbCBDZXJ0aWZp
Y2F0ZSBTaWduaW5nMTgwNgYDVQQDEy9TdGFydENvbSBDbGFzcyAxIFByaW1hcnkgSW50ZXJt
ZWRpYXRlIENsaWVudCBDQTAeFw0xNTA5MTAxNjMwMTdaFw0xNjA5MTAxNDA3NTBaMEQxHTAb
BgNVBAMMFG1pY2hhZWxAc3Ryb2VkZXIuY29tMSMwIQYJKoZIhvcNAQkBFhRtaWNoYWVsQHN0
cm9lZGVyLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJ3ulgRkFW/ozuAX
8HwDmP7ifGF09KbLcAEVVjS013fTAlEzq0TJVcMXx/57LqdWtelCi35YvCzXHURuZl6hpUlR
+yOR1sev9xP2NfEJHQKUfs435wN6xFmdg/LI+ydlJ/exc3XxZVnb994vtJOlQh1H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vcNAwICASgwgaUGCSsGAQQBgjcQBDGBlzCBlDCBjDELMAkGA1UEBhMCSUwxFjAUBgNVBAoT
DVN0YXJ0Q29tIEx0ZC4xKzApBgNVBAsTIlNlY3VyZSBEaWdpdGFsIENlcnRpZmljYXRlIFNp
Z25pbmcxODA2BgNVBAMTL1N0YXJ0Q29tIENsYXNzIDEgUHJpbWFyeSBJbnRlcm1lZGlhdGUg
Q2xpZW50IENBAgMPVg4wgacGCyqGSIb3DQEJEAILMYGXoIGUMIGMMQswCQYDVQQGEwJJTDEW
MBQGA1UEChMNU3RhcnRDb20gTHRkLjErMCkGA1UECxMiU2VjdXJlIERpZ2l0YWwgQ2VydGlm
aWNhdGUgU2lnbmluZzE4MDYGA1UEAxMvU3RhcnRDb20gQ2xhc3MgMSBQcmltYXJ5IEludGVy
bWVkaWF0ZSBDbGllbnQgQ0ECAw9WDjANBgkqhkiG9w0BAQEFAASCAQBMHz+sfRalN5J1irhn
M18JNKr1bgzkIZSQEXt1Qmpfn35F8KsflZ38NBUKlX/N+WuyyuV3FnGCge3gY3w9aerdQ0W6
fGH77h6KZdNcFvYA8iAqVqn1GmxVqI5jovL9VuPHbfVHpqkdCOFMrhryefvnMUg25M6iPyxj
Bu6KVnLh+JXZn1kpxqhkl7hFdLfLbXQL9pNLmw11L8UjHCNffvvfzBKNjxn4d3Ube4YV/etz
PL41Ceg7/uTx8P6qI3Hhh2hVBRVaO3J84GLLOnoHIrEXnfUhkRNM1ST30MNWgtN3ng0+LCDE
oBXKt5qEM0g9MWVtZpvRzsEj+DhAh+wzkfhcAAAAAAAA
--------------ms040207060304010508030608--
quanah(a)openldap.org wrote:
> Full_Name: Quanah Gibson-Mount
> Version: RE24 Sept 11, 2015
> OS: Linux 2.6
> URL: ftp://ftp.openldap.org/incoming/
> Submission from: (NULL) (75.111.52.177)
>
>
> Seeing a scenario where if slapd is stopped on a new MMR node while a full
> REFRESH is occurring, the state of that refresh is not tracked, and the wrong
> CSN value is stored.
> This dataset has 15,000 users. We see it get up to user 625:
>
> Oct 20 16:13:09 q2 slapd[18724]: syncrepl_entry: rid=100 be_search (0)
> Oct 20 16:13:09 q2 slapd[18724]: syncrepl_entry: rid=100
> uid=user625,ou=people,dc=q1,dc=aon,dc=zimbraview,dc=com
> Oct 20 16:13:09 q2 slapd[18724]: slap_queue_csn: queueing 0x44c7e30
> 20151020185526.862768Z#000000#000#000000
> Oct 20 16:13:09 q2 slapd[18724]: slap_graduate_commit_csn: removing 0x44c87c0
> 20151020185526.862768Z#000000#000#000000
> Oct 20 16:13:09 q2 slapd[18724]: syncrepl_entry: rid=100 be_add
> uid=user625,ou=people,dc=q2C2Cdc=aon,dc=zimbraview,dc=com (0)
> Oct 20 16:13:09 q2 slapd[18724]: slapd stopped.
>
>
> Then when slapd is restarted:
>
> Oct 20 16:13:16 q2 slapd[18970]: do_syncrep2: rid=100
> cookie=rid=100,sid=001,csn=20151020201231.263989Z#000000#001#000000
> Oct 20 16:13:16 q2 slapd[18970]: sp_p_queue_csn: queueing 0x309dfd8
> 20151020201231.263989Z#000000#001#000000
> Oct 20 16:13:16 q2 slapd[18970]: slap_queue_csn: queueing 0x5054008
> 20151020201231.263989Z#000000#001#000000
> Oct 20 16:13:16 q2 slapd[18970]: slap_graduate_commit_csn: removing 0x49353c0
> 20151020201231.263989Z#000000#001#000000
> Oct 20 16:13:16 q2 slapd[18970]: slap_graduate_commit_csn: removing 0x4935060
> 20151020201231.263989Z#000000#001#000000
> Oct 20 16:13:16 q2 slapd[18970]: syncrepl_message_to_op: rid=100 be_add
> cn=q2.aon.zimbraview.com,cn=servers,cn=zimbra (0)
>
> which causes it to skip the other 14,000+ users.
After investigating the server setup, there are a few problems here.
The new server was being configured with sid=001 which was already assigned to
the original master. That's clearly going to screw things up.
Aside from that, the new server was converted to MMR using dynamic config and
we have a sequencing problem - it adds the syncprov overlay first, and then
adds the syncrepl config. This is actually the only safe order, since the
consumer will start as soon as it's added and syncprov will already be in
place, ready to propagate changes as needed.
But .. syncprov does a check in syncprov_db_open() to decide whether it should
generate an initial contextCSN on a new DB. This step is ignored if the
backend is configured for MMR (and must be ignored). The problem is that this
node *will be* configured for MMR, but it isn't yet, because the consumer
hasn't been dynamically configured yet. So syncprov generates its own
contextCSN, which is checkpointed on shutdown. The real contextCSN from the
master hasn't been received yet since the refresh is still in progress when
the server is stopped, so on next restart this consumer will present its
generated contextCSN, which is newer than the original master's, and so it
won't resume refreshing from where it left off.
Generating a new contextCSN at startup is of questionable worth. We discussed
this a bit 'way back in 2004
http://www.openldap.org/lists/openldap-devel/200408/msg00035.html Perhaps we
should just not do it; if a single-master provider starts up empty and a
consumer tries to talk to it and both have an empty cookie, the provider
should just respond "you're up to date".
--
-- Howard Chu
CTO, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc/
Chief Architect, OpenLDAP http://www.openldap.org/project/
ikshafi(a)yahoo.com wrote:
> Full_Name: sifat ara nil
> Version: 2.4.39
> OS: centros
> URL: ftp://ftp.openldap.org/incoming/
> Submission from: (NULL) (103.230.63.94)
>
>
> I have create a Ldap server for Email address book purpose .Its running well and
> i am able to search by name . But it's not showing all address in microsoft
> outlook address book without search . how can i make it visible .
The ITS is for reporting bugs only.
You can ask usage questions on the openldap-technical mailing list.
For Outlook try to search for suitable LDAP attribute mappings.
It has been discussed numerous times before.
Ciao, Michael.