1
0
mirror of https://github.com/samba-team/samba.git synced 2025-06-28 00:49:42 +03:00

192 Commits

Author SHA1 Message Date
Andrew Bartlett
0d89adcd4b Correct anr search commants and error messages in ldap.js
(This used to be commit 233dd885c2a2b4ee7cc2287efe7d6e03625d4981)
2008-08-21 12:51:55 +10:00
Andrew Bartlett
16112762e7 Generate the subSchema in cn=Aggregate
This reads the schema from the in-memory structure, when the magic
attributes are requested.  The code is a modified version of that used
in the ad2oLschema tool (now shared).

The schema_fsmo module handles the insertion of the generated result.

As such, this commit also removes these entries from the setup/schema.ldif

Metze's previous stub of this functionality is also removed.

Andrew Bartlett
(This used to be commit c7c32ec7b42bdf0f7b669644516438c71b364e60)
2008-08-15 20:40:57 +10:00
Andrew Bartlett
f4cae6a913 Sleep longer in the hope that the OpenLDAP backend might catch up
(This used to be commit 63c80c885dc3fb2228f082be8db752bb29e3962e)
2008-07-21 11:18:54 +10:00
Andrew Bartlett
0c4738a411 Another kludge to let the OpenLDAP backend catch up.
This will go away when this is handled in an internal transation.

Andrew Bartlett
(This used to be commit f567e17758cfe937249beafae0a9087b67b27755)
2008-07-16 17:06:33 +10:00
Andrew Bartlett
71439c6283 Relax the ldap.py tests so that they pass against OpenLDAP CVS.
This requires a patched OpenLDAP checked out from their CVS HEAD.  I
hope to see the patches incorporated soon.

Andrew Bartlett
(This used to be commit 963bcfc777679ba122189ea6cf7f94b8d46cdce7)
2008-06-30 11:27:55 +10:00
Andrew Bartlett
8b6d8184a5 Loosen ldap.py tests on the LDAP backend.
Allow LDAP backend to return parts of the DN in a different case, when
verifying memberOf.

Andrew Bartlett
(This used to be commit daddfae9fd8b7375bd4f469808378edc60a55be0)
2008-06-30 09:38:52 +10:00
Jelmer Vernooij
63cfab25e9 Non-zero exit code on failure.
(This used to be commit 9c220c0dce31fbe4b2f6433f40a52162d21c03f7)
2008-06-28 15:26:46 +02:00
Andrew Bartlett
446748bfe1 Align the Python and EJS ldap tests.
We should now (need to review and compare them once more) be able to
remove ldap.js (and once samba3sam.js is done, smbscript).

Andrew Bartlett
(This used to be commit f65e43e9456e8e951d172779cba53ab417114b20)
2008-06-03 23:27:22 +10:00
Jelmer Vernooij
49706ab19b Move more modules inside of the samba package.
(This used to be commit 9b39e99f48266a54ed0b8890c2efde218b4b118a)
2008-05-21 23:59:34 +02:00
Jelmer Vernooij
43a22c9b4a Add __repr__ implementation for Ldb.
(This used to be commit 5607aea07f66f09fd5b33842d07d2fbbf44d13e7)
2008-05-19 23:12:13 +02:00
Jelmer Vernooij
ae46119096 Add __repr__ implementations for ldb.Message, ldb.MessageElement and ldb.Dn.
(This used to be commit b9119c0f0f524d43ff09825dffb24a5e77a240f4)
2008-05-19 23:07:04 +02:00
Jelmer Vernooij
babdcc6135 Use system python rather than smbpython.
(This used to be commit d3df51cd01e53383dcc05923d248db03bc6f62e9)
2008-05-11 05:29:20 +02:00
Andrew Bartlett
142fbfb3c1 Fix and test python scripts and kerberos
This fixes up the python credentials interface in a number of areas,
with the aim of supporting '-k yes' as a command line option.  (This
enables the use of kerberos).

As such, I've had to change the get_credentials call to take a
loadparm context, so that the credentials can be initialised
correctly.

The test_kinit script has been modified to prove that this continues
to work, as well as to provide greater code coverage of the kerberos
paths.

Andrew Bartlett
(This used to be commit 727ef40c2b56910028ef3c1092b8eab1bfa6ce63)
2008-03-28 21:57:15 +11:00
Jelmer Vernooij
1529331b97 Avoid using setup.py for intsallation.
(This used to be commit 7b93e43dad55454e9107a38e67764e08f51392d3)
2008-02-12 01:21:10 +01:00
Jelmer Vernooij
1a2544a24c Fix tests.
(This used to be commit e4d7cd8ba77aa05c11dad457c3f2c2c6252c5966)
2008-02-09 19:16:44 +01:00
Jelmer Vernooij
93bb85d293 Split up tests a bit, output subunit.
(This used to be commit 501259ff31641bf52e337b597881d1fedc6b2a63)
2008-02-09 19:04:14 +01:00
Jelmer Vernooij
8fdd13f18a Remove unused path update.
(This used to be commit 1868a42108012183aa78fe5d4f524d45f4505a3e)
2008-02-09 15:43:28 +01:00
Andrew Bartlett
bbf8aca01d Fix syntax in LDAP test
We don't get this far in the test at the moment however.

Andrew Bartlett
(This used to be commit c3098d5c52505e143a6ce498273a5ce6a66220b0)
2008-02-08 13:23:45 +11:00
Jelmer Vernooij
decdf5954d python: Add convenience function for getting command line loadparm context
and default to using system smb.conf.
(This used to be commit b3afde0f00ab5093b577b139a062c233d4db2524)
2008-01-23 23:38:57 +01:00
Jelmer Vernooij
341ee607b3 ldap.py: Use constants where possible.
(This used to be commit 0885dc9f813e19cd6c28d8259eaeccf1e9b26210)
2008-01-15 02:04:20 +01:00
Jelmer Vernooij
1534a4034b ldap/python: Fix last tests.
(This used to be commit 874c00b1c1ef011c85226135144fafdc97d91116)
2008-01-11 04:06:00 +01:00
Jelmer Vernooij
79d466c373 ldb/python: Support comparing Dn's to strings.
(This used to be commit 355878907970b396e4031426fda260d981c417eb)
2008-01-11 04:05:41 +01:00
Jelmer Vernooij
c01396dc24 python/ldap: Fix a couple more tests.
(This used to be commit 3a0d14f33532d88ace770d037c50375fe822dbb6)
2008-01-11 03:27:27 +01:00
Jelmer Vernooij
d2b96bbec0 Make a few more tests pass.
(This used to be commit 017aa400c7097cf6132f2bec969b9bbb5237f4d8)
2008-01-11 03:27:27 +01:00
Jelmer Vernooij
da56ee66b0 python/ldap: Get further.
(This used to be commit 0c27eabbc40657493dc72f12b4fbdb07b0a3200f)
2008-01-11 03:27:27 +01:00
Jelmer Vernooij
5967746c31 python/ldap: Fix some tests.
(This used to be commit 52f64afd4324eb185303ca192b88ccb632ee8587)
2008-01-11 03:27:27 +01:00
Jelmer Vernooij
b344508ca3 python: More work getting the LDAP test to compile again.
(This used to be commit d7a3f9612c40000cb265279598c09f6983305656)
2008-01-11 03:27:27 +01:00
Jelmer Vernooij
410e8f8681 python: Specify right arguments for the ldap test, fix some more calls.
(This used to be commit 74209fa6b097c6cd3c919dc6a67d998de12fa575)
2008-01-11 03:27:26 +01:00
Jelmer Vernooij
a785df0c0a ldap/python: Fix some more calls.
(This used to be commit 583881ae5a2a173abad9ba1ffd766b009d9ca8cd)
2008-01-11 03:27:26 +01:00
Jelmer Vernooij
1d8cdddcd0 python/ldap: Support controls argument to ldb.search().
(This used to be commit 9eddc27f13fa2feb56d6b015e66d8c54081487da)
2008-01-11 03:26:45 +01:00
Jelmer Vernooij
1f4838b8a3 python/ldap: Wrap parse_control_strings().
(This used to be commit b27e5a68530c4fd6430cbb174b63f8ff2b6f4e53)
2008-01-11 02:36:59 +01:00
Jelmer Vernooij
2466d2cc5e ldb/python: Allow comparing a MessageElement to a list or a singleton.
(This used to be commit 1ccbab81d79f83bb419104f2bbaf2ae7b368e90f)
2008-01-11 01:55:56 +01:00
Jelmer Vernooij
c3695026e1 ldb/python: Implement __len__ for MessageElement.
(This used to be commit a8f90ed34ce9341080b63c801ef54b82de42b8e6)
2008-01-11 01:04:25 +01:00
Jelmer Vernooij
9269db983d python/ldb: Add __getitem__ implementation for LdbMessageElement.
(This used to be commit e6498a0780dd31dfc623a69432004b606aeaccbe)
2008-01-11 01:04:25 +01:00
Jelmer Vernooij
405a20b44f r26623: python: Allow specifying URL rather than host name on the command-line.
(This used to be commit 108f6caffe2bb311495b89659cfd818f0ec410f2)
2007-12-28 10:33:02 -06:00
Jelmer Vernooij
0098543d67 r26617: Load smb.conf.
(This used to be commit 3f7bfef195421083f1401a73f60c5d270a1455f8)
2007-12-27 17:36:06 -06:00
Jelmer Vernooij
18f9eaca07 r26615: Fix Python syntax
(This used to be commit cc15136c1e29f0a25847568f748cc1af52b7037b)
2007-12-27 17:36:05 -06:00
Jelmer Vernooij
aa0a06f13c r26570: - Trim size of the swig-generated Python bindings by removing a bunch of {}'s.
- Start working on Python equivalents for various EJS tests.
- Fix regression in argument order for reg_diff_apply() in EJS bindings.
(This used to be commit c550c03372cb260b78f6a6c132e70571bc4cb852)
2007-12-24 01:51:03 -06:00
Jelmer Vernooij
fb021305e4 r26567: Allow registering new ldb modules from python.
(This used to be commit 485db76d8476fce399a9b6cb977cf55ea35ec189)
2007-12-24 01:51:02 -06:00
Jelmer Vernooij
6e2459211d r26537: Support ldb.add({'dn': 'dc=foo,bar=bla', ...}).
(This used to be commit e91fe76d296973430f71502c9b614d0dfac4d83c)
2007-12-21 05:51:57 +01:00
Jelmer Vernooij
07beaf09c9 r26480: Add utility class for testing LDB code.
(This used to be commit d7f0b12c9e43b93705f6b9fa6b5ab74fe68e80a0)
2007-12-21 05:50:37 +01:00
Jelmer Vernooij
ea85165841 r26068: Import improved Python bindings for LDB, including tests.
(This used to be commit fc3a8caef749ddac56a4f035dde8b6ceeaa95c48)
2007-12-21 05:45:51 +01:00