Skip to content

Instantly share code, notes, and snippets.

@nigelkersten
Created October 18, 2010 18:09
Show Gist options
  • Save nigelkersten/632697 to your computer and use it in GitHub Desktop.
Save nigelkersten/632697 to your computer and use it in GitHub Desktop.
pymacds node stuff
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