Skip to content

Commit 2afdc24

Browse files
author
stroeder
committed
Removed method SlapdObject.started()
1 parent 3178479 commit 2afdc24

File tree

1 file changed

+1
-29
lines changed

1 file changed

+1
-29
lines changed

Lib/slapdtest.py

Lines changed: 1 addition & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
44
See http://www.python-ldap.org/ for details.
55
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 $
77
88
Python compability note:
99
This module only works with Python 2.7.x since
@@ -258,7 +258,6 @@ def start(self):
258258
'slapd with pid=%d listening on %s and %s',
259259
self._proc.pid, self.ldap_uri, self.ldapi_uri
260260
)
261-
self.started()
262261

263262
def stop(self):
264263
"""Stops the slapd server, and waits for it to terminate"""
@@ -338,33 +337,6 @@ def ldapmodify(self, ldif, extra_args=None):
338337
"""
339338
self._cli_popen(self.PATH_LDAPMODIFY, extra_args=extra_args, stdin_data=ldif)
340339

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-
368340

369341
class SlapdTestCase(unittest.TestCase):
370342
"""

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy