Andrew Tridgell
91dfe304cf
r11474: - enable ldb transactions from ejs
...
- speed up provisioning a bit using a ldb transaction (also means you
can't end up with a ldb being half done)
2007-10-10 13:45:41 -05:00
Andrew Tridgell
7f797e7097
r11354: - generate a ejs error on bad ldif to add/modify
...
- fixed a double free error in ldb.close()
2007-10-10 13:45:23 -05:00
Andrew Tridgell
dff660c23c
r10252: a recent checkin from simo changed the handling of BASE and SUBTREE
...
searches in ldb to be more ldap compliant, but broke the wins server
and the ejs ldb code. This fixes those up so 'make test' passes again.
2007-10-10 13:38:11 -05:00
Andrew Tridgell
1f12364a0f
r10192: r11631@blu: tridge | 2005-08-30 23:06:37 +1000
...
added a ldb.close() method in js. Useful for re-opening the db
2007-10-10 13:38:07 -05:00
Jelmer Vernooij
8ff1358f40
r9915: Some more mappings. Fix weird sAMAccountName values.
2007-10-10 13:36:21 -05:00
Jelmer Vernooij
b7992de4b7
r9842: More error checks in the ldb_map modules, extend testsuite
2007-10-10 13:36:17 -05:00
Jelmer Vernooij
d9541535e3
r9770: Couple other bugfixes
...
Update TODO-list
2007-10-10 13:34:58 -05:00
Jelmer Vernooij
1376a1fe44
r9762: Add support for reading good old smbpasswd files
...
Fix password support
Make base64 decode/encode functions available to EJS
2007-10-10 13:34:57 -05:00
Andrew Tridgell
a8748cab86
r9706: r11042@blu: tridge | 2005-08-28 12:40:09 +1000
...
a NULL expression is valid in a ldb search
2007-10-10 13:34:52 -05:00
Andrew Tridgell
7082440a70
r9566: fix an uninitialised variable
2007-10-10 13:34:29 -05:00
Simo Sorce
692e35b779
r9391: Convert all the code to use struct ldb_dn to ohandle ldap like distinguished names
...
Provide more functions to handle DNs in this form
2007-10-10 13:33:32 -05:00
Andrew Tridgell
d2c29a5a51
r8659: return ldif formatted attributes in the ejs ldb search call, so sids show up as strings
...
not binary blobs
2007-10-10 13:29:50 -05:00
Andrew Tridgell
6a1ed328e2
r8635: make object inheritance with the builtin objects easy by allowing
...
callers to optionally supply an existing object to add the properties
to. So you can do:
var rpc = samr_init();
lsa_init(rpc);
and you end up with 'rpc' having both the samr and lsa functions and
constants available.
2007-10-10 13:29:47 -05:00
Andrew Tridgell
4c1d6a97c0
r8602: allow options in ldb connect calls
2007-10-10 13:29:44 -05:00
Andrew Tridgell
9af48b8fc2
r8569: delete is a js reserved word, so use del instead
2007-10-10 13:29:39 -05:00
Andrew Tridgell
21ca972d06
r8557: expose ldb_errstring() in ldb ejs code
2007-10-10 13:29:37 -05:00
Simo Sorce
e709e37928
r8516: let us use all parameters of ldbsearch in ldb.search
2007-10-10 13:29:33 -05:00
Simo Sorce
5a6c2170ff
r8499: clearer function name
2007-10-10 13:23:10 -05:00
Andrew Tridgell
ccf20b2b13
r8489: neaten up the object handling
2007-10-10 13:23:09 -05:00
Andrew Tridgell
cf35818648
r8488: after discussions with simo, moved to a full OO interface, so you don't need to keep
...
a 'db' variable around. The ldb object knows what it is connected to.
Added a simple ldb testsuite in testprogs/ldb.js
2007-10-10 13:23:08 -05:00
Andrew Tridgell
98c9c4ecb8
r8486: switched to a separate connection operation in ldb interface
...
(a suggestion from simo)
2007-10-10 13:23:08 -05:00
Andrew Tridgell
3093057d97
r8481: switched ldb ejs called over to an OO interface, so you do:
...
var ldb = ldb_init();
res = ldb.search(dbfile, "(objectClass=user)");
you can also do:
ldbSearch = ldb.search;
res = ldbSearch(dbfile, "(objectClass=user)");
if you want the old interface (ie. you can use this to import
functions into the global or local namespace).
2007-10-10 13:23:07 -05:00
Andrew Tridgell
632f99017d
r8406: make sure we give an error in ldbAdd() if any record fails
2007-10-10 13:22:58 -05:00
Andrew Tridgell
52db7a052b
r8399: move the ejs and esp code closer to the directory layout used by the
...
upstream sources. This makes it much easier to keep it up to date.
I will separate out the mpr code into lib/appweb/mpr next
2007-10-10 13:22:39 -05:00
Andrew Tridgell
625628a3f6
r8340: - added sys_gmtime()
...
- added sys_unlink()
- added sys_file_load() and sys_file_save()
- use mprString() instead of mprCreateStringVar() to cope with NULL strings
- removed smbcalls_irpc.c as its not needed any more
- allow ldbAdd() and ldbModify() to take multiple ldif records
- added a sprintf() function to ejs. Quite complex, but very useful!
2007-10-10 13:20:08 -05:00
Andrew Tridgell
322c213783
r8339: added ldbAdd(), ldbModify(), ldbDelete() and ldbRename() to ejs ldb functions
2007-10-10 13:20:08 -05:00
Andrew Tridgell
9c885a7edb
r8276: fixed the remaining memory leaks in smbscript. We can now loop doing
...
lots of rpc calls without memory usage increasing.
2007-10-10 13:19:30 -05:00
Tim Potter
b086768589
r7266: Split the different types of js function defines into separate files,
...
as there are going to be a lot more of them.
2007-10-10 13:17:34 -05:00