Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
see all properties of given ldap node
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.DirectoryServices; using System.IO; namespace Node_properties { class NodeProperties { static void Main(string[] args) { if (args.Length < 2 ) { Console.WriteLine("\nUsage: <.exe> \"ldap_node\" (without LDAP://, but wrapped IN QUOTES!!!) output_file"); return; } string node = "LDAP://" + args[0]; string file = args[1]; using (DirectoryEntry ent = new DirectoryEntry(node)) { using (TextWriter tw = new StreamWriter(file)) { foreach (var prop in ent.Properties) { tw.WriteLine(((PropertyValueCollection)prop).PropertyName); foreach (var p in (PropertyValueCollection)prop) tw.WriteLine("\t\t" + p); } } } } } }
run
|
edit
|
history
|
help
0
Intuit // C# // listing_4.9 (do_while // kupi_slonika
Funzpoint
comb sort
IComparable extensions: Between
remove dups
expresiones switch
Math 9.7 (Added Speed Math)
name generator
xx
ok