|
3 | 3 |
|
4 | 4 | See http://www.python-ldap.org/ for details.
|
5 | 5 |
|
6 |
| -\$Id: slapdtest.py,v 1.7 2017/04/27 16:45:19 stroeder Exp $ |
| 6 | +\$Id: slapdtest.py,v 1.8 2017/04/28 06:34:20 stroeder Exp $ |
7 | 7 |
|
8 | 8 | Python compability note:
|
9 | 9 | This module only works with Python 2.7.x since
|
@@ -258,7 +258,6 @@ def start(self):
|
258 | 258 | 'slapd with pid=%d listening on %s and %s',
|
259 | 259 | self._proc.pid, self.ldap_uri, self.ldapi_uri
|
260 | 260 | )
|
261 |
| - self.started() |
262 | 261 |
|
263 | 262 | def stop(self):
|
264 | 263 | """Stops the slapd server, and waits for it to terminate"""
|
@@ -338,33 +337,6 @@ def ldapmodify(self, ldif, extra_args=None):
|
338 | 337 | """
|
339 | 338 | self._cli_popen(self.PATH_LDAPMODIFY, extra_args=extra_args, stdin_data=ldif)
|
340 | 339 |
|
341 |
| - def started(self): |
342 |
| - """ |
343 |
| - This method is called when the LDAP server has started up and is empty. |
344 |
| - By default, this method adds the two initial objects, |
345 |
| - the domain object and the root user object. |
346 |
| - """ |
347 |
| - suffix_dc = self.suffix.split(',')[0][3:] |
348 |
| - self._log.debug( |
349 |
| - "adding %s and %s", |
350 |
| - self.suffix, |
351 |
| - self.root_dn, |
352 |
| - ) |
353 |
| - self.ldapadd( |
354 |
| - "\n".join([ |
355 |
| - 'dn: '+self.suffix, |
356 |
| - 'objectClass: dcObject', |
357 |
| - 'objectClass: organization', |
358 |
| - 'dc: '+suffix_dc, |
359 |
| - 'o: '+suffix_dc, |
360 |
| - '', |
361 |
| - 'dn: '+self.root_dn, |
362 |
| - 'objectClass: applicationProcess', |
363 |
| - 'cn: '+self.root_cn, |
364 |
| - '' |
365 |
| - ]) |
366 |
| - ) |
367 |
| - |
368 | 340 |
|
369 | 341 | class SlapdTestCase(unittest.TestCase):
|
370 | 342 | """
|
|
0 commit comments