summaryrefslogtreecommitdiff
path: root/source4/scripting/ejs/smbcalls_ldb.c
AgeCommit message (Collapse)AuthorFilesLines
2007-10-10r10252: a recent checkin from simo changed the handling of BASE and SUBTREEAndrew Tridgell1-0/+1
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. (This used to be commit dff660c23c97114d0c1be705f4d6a9c114b60456)
2007-10-10r10192: r11631@blu: tridge | 2005-08-30 23:06:37 +1000Andrew Tridgell1-0/+26
added a ldb.close() method in js. Useful for re-opening the db (This used to be commit 1f12364a0f23ba39fd3d29b510fdef2423685f0d)
2007-10-10r9915: Some more mappings. Fix weird sAMAccountName values.Jelmer Vernooij1-4/+10
(This used to be commit 8ff1358f401e0086b941f4ff73af5d4c38a1f8bf)
2007-10-10r9842: More error checks in the ldb_map modules, extend testsuiteJelmer Vernooij1-4/+4
(This used to be commit b7992de4b7d42a55e00509c887a269a07c19627d)
2007-10-10r9770: Couple other bugfixesJelmer Vernooij1-1/+5
Update TODO-list (This used to be commit d9541535e3f9e1c058410eeb0a54d60181572f2b)
2007-10-10r9762: Add support for reading good old smbpasswd filesJelmer Vernooij1-0/+61
Fix password support Make base64 decode/encode functions available to EJS (This used to be commit 1376a1fe44cd6b01709819095a711c14626b1d3e)
2007-10-10r9706: r11042@blu: tridge | 2005-08-28 12:40:09 +1000Andrew Tridgell1-4/+0
a NULL expression is valid in a ldb search (This used to be commit a8748cab865c765f844336087a386c01e60add62)
2007-10-10r9566: fix an uninitialised variableAndrew Tridgell1-1/+1
(This used to be commit 7082440a70c5f85606538b7a35a1cc8f41eb7eeb)
2007-10-10r9391: Convert all the code to use struct ldb_dn to ohandle ldap like ↵Simo Sorce1-12/+30
distinguished names Provide more functions to handle DNs in this form (This used to be commit 692e35b7797e39533dd2a1c4b63d9da30f1eb5ba)
2007-10-10r8659: return ldif formatted attributes in the ejs ldb search call, so sids ↵Andrew Tridgell1-1/+1
show up as strings not binary blobs (This used to be commit d2c29a5a51f68cabb9ef587376bf0a6b936cdd76)
2007-10-10r8635: make object inheritance with the builtin objects easy by allowingAndrew Tridgell1-5/+2
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. (This used to be commit 6a1ed328e27769bd52899fc2437a43fc17104eff)
2007-10-10r8602: allow options in ldb connect callsAndrew Tridgell1-2/+3
(This used to be commit 4c1d6a97c0c9df2848a16afb1b4eed4b20963bef)
2007-10-10r8569: delete is a js reserved word, so use del insteadAndrew Tridgell1-1/+1
(This used to be commit 9af48b8fc201822e290a1071d9e61afe519558f5)
2007-10-10r8557: expose ldb_errstring() in ldb ejs codeAndrew Tridgell1-0/+19
(This used to be commit 21ca972d06bbf4694569855f39a1649d799c05c7)
2007-10-10r8516: let us use all parameters of ldbsearch in ldb.searchSimo Sorce1-8/+31
(This used to be commit e709e3792846e2bd48b55112c74395d1ab3a1b6a)
2007-10-10r8499: clearer function nameSimo Sorce1-5/+5
(This used to be commit 5a6c2170ff83c29ed1d7f0f5329f2d9aa00c223a)
2007-10-10r8489: neaten up the object handlingAndrew Tridgell1-4/+2
(This used to be commit ccf20b2b13b11ac07b59988809b6c5160388a616)
2007-10-10r8488: after discussions with simo, moved to a full OO interface, so you ↵Andrew Tridgell1-39/+39
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 (This used to be commit cf35818648b5b649d0cd25f115a04b7b5b5311aa)
2007-10-10r8486: switched to a separate connection operation in ldb interfaceAndrew Tridgell1-73/+101
(a suggestion from simo) (This used to be commit 98c9c4ecb87e1b140002390067892806464849da)
2007-10-10r8481: switched ldb ejs called over to an OO interface, so you do:Andrew Tridgell1-5/+17
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). (This used to be commit 3093057d9735cbb62f57e7159264d5a28b85320f)
2007-10-10r8406: make sure we give an error in ldbAdd() if any record failsAndrew Tridgell1-0/+1
(This used to be commit 632f99017ded607c80022f730b6ec7e37bd13642)
2007-10-10r8399: move the ejs and esp code closer to the directory layout used by theAndrew Tridgell1-1/+1
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 (This used to be commit 52db7a052baeb0f11361ed69b71cb790039e3cc9)
2007-10-10r8340: - added sys_gmtime()Andrew Tridgell1-5/+3
- 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! (This used to be commit 625628a3f6e78349d2240ebcc79081f350672070)
2007-10-10r8339: added ldbAdd(), ldbModify(), ldbDelete() and ldbRename() to ejs ldb ↵Andrew Tridgell1-0/+144
functions (This used to be commit 322c2137835ff2d76b3183901bf680780f164b5e)
2007-10-10r8276: fixed the remaining memory leaks in smbscript. We can now loop doingAndrew Tridgell1-1/+2
lots of rpc calls without memory usage increasing. (This used to be commit 9c885a7edb771486793eb287288158157b34e8f3)
2007-10-10r7266: Split the different types of js function defines into separate files,Tim Potter1-0/+93
as there are going to be a lot more of them. (This used to be commit b086768589ee27de6616945bbea42b18b40d25d5)