Few preliminary comments follow.
vargok(a)yahoo.com wrote:
> Version: 2.3.32
You should rather patch HEAD code instead of released, and even not the
latest. However, given the development rate of back-sql (~0), it
shouldn't really matter
> These address the use of Binary-valued attributes (#3113, #3386):
>
> For example, inetOrgPerson.userCertificate is usually transferred with the
> ";binary" directive. ";binary" is not handled by OpenLDAP/Back-SQL.
Well, the solution you propose is not correct, since you are altering
schema data, which is supposed to be read-only. In any case, the point is:
- if we decide that back-sql should ignore tags, then the solution
consists in using the canonical name of the underlying AttributeType
when looking up data;
- however, this would destroy the possibility to use different storages
for differently encoded data; for example, a column for "cn;lang-en" and
a column for "cn;lang-jp". I don't know how many users would prefer one
solution over another, but in any case either we find a solution that
preserves both capabilities or we choose one. I'd vote in favor of
ignoring ";binary" since it's obsolete and related to transport only,
but in favor of honoring language tags.
> As well,
> the data itself, when stored in the database is not properly read out -- all
> data is read as SQL_C_CHAR data. This supports SQL_C_BINARY-based data.
This is just fine.
> There remains an issue with selecting attributes using, e.g.,
> "userCertificate;binary" -- nothing is returned. Someone with a better
> understanding of the attribute-processing method would be much more effective in
> terms of finding the correct place to remove the ";binary" from the
> "attribute-name." (i.e. "userCertificate;binary" is NOT the attribute-name;
> "userCertificate" is the attribute-name, ";binary" is a transport directive (see
> #3113).
In fact, "userCertificate;binary" is the attribute description. The
attribute name is in ad_type->sat_cname.
> Additionally, I included to the patch to remove the "assert(0)" in Back-SQL's
> verification that a search filter and ldap-data don't mis-match on suffix.
Fine, but already fixed.
> Tags: OpenLDAP, Back-SQL, MySQL, userCertificate, Binary Attributes, Client
> Certificates
>
>
> (1)
> ./servers/slapd/back-sql/search.c.patch
> Addressed ITS#4856 -- I think you already fixed this
>
> (2)
> ./servers/slapd/back-sql/back-sql.h.patch
> ./servers/slapd/back-sql/entry-id.c.patch
> ./servers/slapd/back-sql/sql-wrap.c.patch
> Address ITS#3113, ITS#3386
> Support for binary attribute values
>
> (3)
> ./servers/slapd/back-sql/schema-map.c.patch
> Addresses issue with accessing attributes that have been provided with
> ";binary" directive
>
> note that I have no doubts whatso ever that there are many better ways to do
> (3).
You made an extensive use of C++ style comments, which are non portable.
Obviously you didn't read the contribution guidelines.
I'm testing (and improving) it.
p.
Ing. Pierangelo Masarati
OpenLDAP Core Team
SysNet s.n.c.
Via Dossi, 8 - 27100 Pavia - ITALIA
http://www.sys-net.it
------------------------------------------
Office: +39.02.23998309
Mobile: +39.333.4963172
Email: pierangelo.masarati(a)sys-net.it
------------------------------------------
The ITS is not for general software usage questions. Use the
ldap(a)umich.edu mailing list for general LDAP questions. This ITS will be
closed.
maruthigsr(a)gmail.com wrote:
> Full_Name: Maruthi Gullapudi
> Version:
> OS: AIX
> URL: ftp://ftp.openldap.org/incoming/
> Submission from: (NULL) (194.221.133.211)
>
>
> Hi,
>
> I wanted to list all the users based on the value of one attribute using the
> LDAPSEARCH Command. The value of that attribute is NULL. I dont know whether
> LDAPSEARCH will capture null values.
>
> Can anyone tell me how to list users from an LDAP directory based on a NUll
> valued attribute.
>
> Thanks in Advance
> Maruthi
>
>
> .
>
--
-- Howard Chu
Chief Architect, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc
Chief Architect, OpenLDAP http://www.openldap.org/project/
Piotr.Golonka(a)cern.ch wrote:
> Indeed, 2.2.13 may be historical,
It is. It's not an opinion, but a fact. Even 2.2.30, the latest 2.2
release, is historical.
> yet this is the version used in large
> production systems (e.g. RedHat Enterprise Linux).
I believe the problem is not ours. I think we did our best by pushing
out 2.2 up to 2.2.30, then 2.3 up to 2.3.34, and now 2.4. If
distributions don't catch up I don't think anyone can blame OpenLDAP
(and I don't think you are; I'm just trying to make the point).
> I'll try to have a look at what's in 2.4.
I hope I get my point: every contribution is welcome, but not every
contribution may be useful. Writing howtos for code that was released
ages ago, and is not maintained may be considered little useful. This
is an opinion, of course.
p.
Ing. Pierangelo Masarati
OpenLDAP Core Team
SysNet s.n.c.
Via Dossi, 8 - 27100 Pavia - ITALIA
http://www.sys-net.it
------------------------------------------
Office: +39.02.23998309
Mobile: +39.333.4963172
Email: pierangelo.masarati(a)sys-net.it
------------------------------------------
On Monday 12 March 2007 18:04, you wrote:
> 2.2.13 is historical. ldap_sasl_bind(3) eventually got documented (only
> the prototype in 2.3, more docs in 2.4). Please check current 2.4
> documentation and, in case, adapt your contribution to it. In fact, that
> man page does not contain any coding example, as we usually refer to client
> tools implementations. Please feel free to submit your contribution, lined
> up to active code, as a FAQ entry <http://www.openldap.org/faq/>. The FAQ
> is interactive.
Hi,
thanx for reply.
Indeed, 2.2.13 may be historical, yet this is the version used in large
production systems (e.g. RedHat Enterprise Linux).
I'll try to have a look at what's in 2.4.
best regards:
Piotr
Full_Name: Kevin Vargo
Version: 2.3.32
OS: Linux (RH-EL4)
URL: ftp://ftp.openldap.org/incoming/openldap-2.3.32-kv1-patch_support-binary-at…
Submission from: (NULL) (128.237.242.55)
These address the use of Binary-valued attributes (#3113, #3386):
For example, inetOrgPerson.userCertificate is usually transferred with the
";binary" directive. ";binary" is not handled by OpenLDAP/Back-SQL. As well,
the data itself, when stored in the database is not properly read out -- all
data is read as SQL_C_CHAR data. This supports SQL_C_BINARY-based data.
There remains an issue with selecting attributes using, e.g.,
"userCertificate;binary" -- nothing is returned. Someone with a better
understanding of the attribute-processing method would be much more effective in
terms of finding the correct place to remove the ";binary" from the
"attribute-name." (i.e. "userCertificate;binary" is NOT the attribute-name;
"userCertificate" is the attribute-name, ";binary" is a transport directive (see
#3113).
Additionally, I included to the patch to remove the "assert(0)" in Back-SQL's
verification that a search filter and ldap-data don't mis-match on suffix.
Tags: OpenLDAP, Back-SQL, MySQL, userCertificate, Binary Attributes, Client
Certificates
(1)
./servers/slapd/back-sql/search.c.patch
Addressed ITS#4856 -- I think you already fixed this
(2)
./servers/slapd/back-sql/back-sql.h.patch
./servers/slapd/back-sql/entry-id.c.patch
./servers/slapd/back-sql/sql-wrap.c.patch
Address ITS#3113, ITS#3386
Support for binary attribute values
(3)
./servers/slapd/back-sql/schema-map.c.patch
Addresses issue with accessing attributes that have been provided with
";binary" directive
note that I have no doubts whatso ever that there are many better ways to do
(3).
Full_Name: Piotr.Golonka(a)CERN.CH
Version: 2.2.13
OS: Linux
URL: ftp://ftp.openldap.org/incoming/golonka-pkg-070312.tgz
Submission from: (NULL) (137.138.170.170)
Hi,
the documentation of the ldap_sasl_bind* family of functions is missing, and
getting the actual DIGEST-MD5 authentication in your C code working seems to be
completely undocumented.
I went through the complete code of ldapsearch.c and extracted the minimal code
that succesfully demonstrates DIGEST-MD5 authentication. In my case, I
authenticated against ActiveDirectory server.
I uploaded the example into your FTP server as golonka-pkg-070312.tgz
I hope it may be useful to publish it as a short "Howto" material...
regards
Piotr Golonka
CERN
Full_Name: Maruthi Gullapudi
Version:
OS: AIX
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (194.221.133.211)
Hi,
I wanted to list all the users based on the value of one attribute using the
LDAPSEARCH Command. The value of that attribute is NULL. I dont know whether
LDAPSEARCH will capture null values.
Can anyone tell me how to list users from an LDAP directory based on a NUll
valued attribute.
Thanks in Advance
Maruthi
[please keep the ITS in CC]
Eubank, Chris LCS:EX wrote:
> Am running Solaris 10, and the version I stuck in the log.
>
> When I created an "openldaprc" and used the variable for the
> replication log,
What is the "variable for the replication log"? All one usually needs
to do is define a replogfile in slapd.conf(5)
> (which ends up obviously running the slurpd daemon
> with the -r switch),
Again: there's no need to use -r if replogfile is in slapd.conf(5); if
there is no replogfile in slapd.conf(5), slapd(8) will not generate any
log, so slurpd(8) will have nothing to do
> it sent the replication data to the logfile and
> not to the replication hosts being specified.
Who sent the replication data to the logfile? slapd(8) is supposed to
write replication data to the file specified in replogfile
(sladp.conf(5)); slurpd(8) is supposed to read that file (whose
existence and location is known by parsing slapd.conf(5)), copy the
content it is able to process to its own replication log, which resides
in slurpd's working directory (default or passed with -t) and is called
slurpd.replog, send that content to the slaves, and remove the data that
has been handled from slapd's replication log.
This is how things are expected to work. As you may see, -r never comes
into play; it's intended to be used to force slurpd processing of a
different file, which may be required for special purposes. Do you have
any special needs, or are you simply trying to set up usual replication?
> Does that make more sense?
See comments above.
p.
Ing. Pierangelo Masarati
OpenLDAP Core Team
SysNet s.n.c.
Via Dossi, 8 - 27100 Pavia - ITALIA
http://www.sys-net.it
------------------------------------------
Office: +39.02.23998309
Mobile: +39.333.4963172
Email: pierangelo.masarati(a)sys-net.it
------------------------------------------