Created
October 18, 2010 18:09
-
-
Save nigelkersten/632697 to your computer and use it in GitHub Desktop.
pymacds node stuff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nigelk$ sudo python2.6 | |
Python 2.6.1 (r261:67515, Feb 11 2010, 00:51:29) | |
[GCC 4.2.1 (Apple Inc. build 5646)] on darwin | |
Type "help", "copyright", "credits" or "license" for more information. | |
>>> import pymacds | |
>>> pymacds.GetSearchNodes() | |
['/Local/Default', '/BSD/local', '/LDAPv3/ldap.corp.google.com'] | |
>>> pymacds.EnsureSearchNodeAbsent('/LDAPv3/ldap.corp.google.com') | |
>>> pymacds.GetSearchNodes() | |
['/Local/Default', '/BSD/local'] | |
>>> pymacds.ConfiguredNodesLDAPv3() | |
['ldap.corp.google.com'] | |
>>> pymacds.ConfiguredNodesBSD() | |
['local'] | |
>>> pymacds.ConfiguredNodesLocal() | |
['Default'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment