Howard Chu
d6a37432bd
Changed dn_rdn/dn_rdnlen to struct berval
2001-12-28 08:38:24 +00:00
Howard Chu
ef31250591
More struct berval fixes
2001-12-27 01:38:15 +00:00
Howard Chu
0e5e2a95fd
More struct berval fixes for modrdn
2001-12-27 01:10:52 +00:00
Kurt Zeilenga
93fb01e2f0
Fix modrdn and other misc cleanup
2001-12-26 23:03:36 +00:00
Kurt Zeilenga
21cecb3831
Update referral handling to use struct berval DNs.
2001-12-26 20:59:24 +00:00
Kurt Zeilenga
bd0135ccb4
Move search, modify, and modrdn APIs to struct berval DNs.
...
Much clean up is needed.
2001-12-26 19:50:40 +00:00
Kurt Zeilenga
2dd27b0786
More struct berval DNs
2001-12-25 19:48:26 +00:00
Kurt Zeilenga
ae0a17fa4e
Adjust e_name.bv_len on modrdn
2001-12-25 03:03:03 +00:00
Kurt Zeilenga
5ee89d6167
Use struct berval DNs for root DN and update DN
2001-12-25 00:05:26 +00:00
Howard Chu
2f3399265c
Changed sai_dn, sai_ndn to struct berval. (Affects op->o_dn,o_ndn,
...
conn->c_dn,c_ndn, Access->a_dn_pat)
2001-12-24 15:11:01 +00:00
Howard Chu
e2c2de11c3
Converted all use of dn_parent to the in-place version. (Fixed a pdn leak
...
in back-sql along the way.)
2001-12-08 10:37:42 +00:00
Pierangelo Masarati
d51dc13a0b
moved the empty dn static entry into a global const object
2001-11-16 17:05:32 +00:00
Pierangelo Masarati
616d409817
updatedn can add '' rooted entries (according to ACLs)
2001-11-16 14:08:17 +00:00
Pierangelo Masarati
7793ece6ce
check children access to newSuperior
2001-11-16 14:04:54 +00:00
Pierangelo Masarati
0cf9b37908
non-root modrdn of entries rooted at '' checks children write permission (completes previous add/delete fix; needs be ported to back-bdb)
2001-11-16 12:24:22 +00:00
Pierangelo Masarati
6b1104ab87
Fixes first part of ITS#1430
2001-11-12 17:32:52 +00:00
Kurt Zeilenga
82fad7d0c8
First stable an implementing latest namedref specification.
...
Includes rewriting of URLs where the DN of the referral object
and the DN of the ref attribute attribute are not the same.
Also, always returns explicit DN and scope.
Currently, back-ldbm only. Needs to be ported to back-bdb.
2001-10-26 02:05:14 +00:00
Howard Chu
0e16f6acf9
Moved AttributeDescription caching into main code:
...
Changed AttributeDescription.{ad_cname,ad_lang} to struct berval everywhere
Deleted ad_free() everywhere
Added ad_mutex to init.c
The AttributeDescriptions are in a linked list hanging off of the
corresponding AttributeType.
2001-10-22 13:23:05 +00:00
Pierangelo Masarati
6e4a050657
fix memory leak in case of ACL failure (no write permission to rdn attributes)
2001-10-02 10:36:35 +00:00
Pierangelo Masarati
419a5ae8c9
fix typo; try to delete dn2id in case of late failure
2001-07-31 10:54:39 +00:00
Pierangelo Masarati
d8cb33ebe8
added acl check for added/removed rdn attrs
2001-07-31 10:02:19 +00:00
Pierangelo Masarati
4362654eb6
fixes another assert in case of subtle error (schema failure while applying rdn changes)
2001-07-30 20:12:34 +00:00
Pierangelo Masarati
8edccd2554
fixes ITS#1261 (abort on modrdn with new dn already existing)
2001-07-30 14:54:02 +00:00
Kurt Zeilenga
9207e19978
unifdef -DMULTIATTRVAL_RDN
2001-07-21 21:21:32 +00:00
Pierangelo Masarati
9ee9f1e0e1
Reworked again the caching in case of failure.
...
Now operations that set the status of an entry to CREATING (add.c, modrdn.c)
need to set it to COMMIT, by calling cache_entry_commit, before returning
the entry itself, otherwise the entry is removed from the cache
and its private data is freed.
Should fix crashes due to add failures as in ITS#1245
2001-07-21 10:53:06 +00:00
Pierangelo Masarati
27e5c484e6
reworked rdn_attrs to use ldap_explode_rdn; maybe we should remove escapes "\" from parts directly in ldap_explode_rdn
2001-07-10 18:19:22 +00:00
Pierangelo Masarati
2baa2f0f24
If add to "" is allowed, also modrdn should
2001-07-07 15:40:25 +00:00
Pierangelo Masarati
da9ea54700
fixed test on "" (empty) parent dn
2001-07-06 14:40:27 +00:00
Pierangelo Masarati
f4acf94c83
honors '+' rdn separator in adding/deleting attributes; needs -DMULTIATTRVAL_RDN. Please test
2001-07-06 12:24:34 +00:00
Pierangelo Masarati
cd74b62fd2
rdn check to prevent illegal rdns in modrdn (copied from dn_rdn) fixes ITS#1102
2001-07-05 08:40:40 +00:00
Pierangelo Masarati
5ad8efbb47
Used API signature from back-bdb; compiles and passes make test
2001-07-03 11:23:18 +00:00
Pierangelo Masarati
fdd45144ca
separate ID return value form return status in dn2id (back-ldbm/dn2id.c)
2001-07-02 19:42:27 +00:00
Kurt Zeilenga
cda7d4b2fc
Check for children
2001-06-07 00:19:23 +00:00
Kurt Zeilenga
adae86a7db
Add more detailed reporting of schema violations to client.
2001-06-06 00:23:56 +00:00
Kurt Zeilenga
b8788e8a75
minor cleanup
2001-05-18 17:10:03 +00:00
Kurt Zeilenga
da0e6d3d98
Previously added modrdn restriction to restrictive. Need to
...
check newSuperior.
2001-04-19 19:29:00 +00:00
Gary Williams
3281138bcf
fix format for new logging
2001-01-17 17:01:19 +00:00
Stig Venaas
43015fc862
Allow changing rdn only, locked parent twice when old and new parent were
...
the same.
2001-01-09 15:49:44 +00:00
Kurt Zeilenga
a75a024fd3
Consistently don't require "entry" access (except on search)
2000-09-05 21:48:12 +00:00
Kurt Zeilenga
693fb9424a
unifdef -DSLAPD_SCHEMA_NOT_COMPAT -USLAPD_SCHEMA_COMPAT
2000-06-06 19:43:18 +00:00
Kurt Zeilenga
13daacdbda
Fix error text handling
2000-05-28 22:38:21 +00:00
Kurt Zeilenga
4d835c0532
modify ldbm_modify_internal to return error text
2000-05-28 20:44:08 +00:00
Kurt Zeilenga
9e9be9c283
SLAPD_SCHEMA_NOT_COMPAT: Mostly working modrdn
2000-05-28 17:26:30 +00:00
Kurt Zeilenga
439c0c796d
SLAPD_SCHEMA_NOT_COMPAT: Mostly work modify
2000-05-28 16:36:34 +00:00
Kurt Zeilenga
5904e0013f
SLAPD_SCHEMA_NOT_COMPAT: add missing AttributeDescriptions
2000-05-28 01:36:03 +00:00
Kurt Zeilenga
60802201e3
Const'ification
...
SASL mech removed from backend bind callback (as SASL is managed by frontend)
Changes to some backends are untested (as I don't have all dependent
software install)
2000-05-22 03:46:57 +00:00
Kurt Zeilenga
4bc786f34b
Y2k copyright update
2000-05-13 02:47:56 +00:00
Kurt Zeilenga
2dc6185a92
LDAP_OPERATIONS_ERROR -> LDAP_OTHER
...
and other misc changes
2000-04-25 13:06:22 +00:00
Kurt Zeilenga
4710c74605
Rework error handling. Add error descriptions.
...
Don't use LDAP_OPERATIONS_ERROR for internal errors. Use LDAP_OTHER
instead. (more changes needed in this area)
2000-03-03 22:37:06 +00:00
Kurt Zeilenga
0dbaf87730
Another round of changes behind -DSLAPD_SCHEMA_NOT_COMPAT
...
plus these changes unhidden changes:
remove now meaning --enable-discreteaci configure option
fix ITS#451, slapd filters
Add ber_bvecadd() to support above
constify ldap_pvt_find_wildcard() and misc slapd routines
renamed some slap.h macros
likely broken something
2000-02-14 20:57:34 +00:00