joeware - never stop exploring... :)

Information about joeware mixed with wild and crazy opinions...

AdMod Basic Usage Screen

by @ 11:28 pm on 9/13/2006. Filed under general

F:\Dev\CPP\AdMod>admod AdMod V01.07.00cpp_BETA1 Joe Richards (joe@joeware.net) September 2006 -help Basic help. -? Basic help. -?? Advanced help. -???? Shortcut help. -sc? Shortcut help. -csv? CSV / ADCSV help. Usage: AdMod [switches] [attr-action] Switches: (designated by - or /) [CONNECTION OPTIONS] -h host:port Host and port to use. If not specified uses port 389 on default LDAP server. Localhost can be specified as '.'. Port can also be specified via -p. [UPDATE OPTIONS] -b basedn RFC 2253 DN to work on. If basedn is not specified the program will read from stdin anything piped to it or if you want you can type the DNs there followed by a ctrl-z to terminate the pipe. -safety x How many objects before safety kicks in. Default 10. [ACTIONS] -rm Delete specified object(s). -del Alias for -rm. -add Add an object. Specify DN with -b and attributes normally. At the very least you will need to specify objectclass. -undel x Undelete specified object(s), uses lastknownparent unless an alternate parent is supplied in x. Requires K3+. -rename x Rename object to RDN of x, only works with one object. -move x Move object to parent specified by x (within domain) Attr-Action Format: attribute : operation : value(s) This field is broken up into three main sections. Not all sections are required for all operations. The three sections are the attribute section, operation section, and value section. By default the delimiter between the sections is the : character however you may change this with the -delim option. Type AdMod /?? for details. Notes: o This tool could be considered dangerous, it can quickly make some serious changes to your directory. Use it only when you know what you are doing. I take no responsibility for you dorking up your directory. The safety option will bail the whole operation if there are more objects to work on than specified with the -safety option. Type AdMod /?? for more notes. Ex1: admod -b dc=test,dc=net "description::Joe's Domain" Change Description of test.net object. Ex2: admod -b cn=joe,cn=users,dc=test,dc=net "drink:++:Coke;Mountain Dew;Labatt's;Water" Add some drinks to joe's user object in the directory Ex3: admod -b cn=joe,cn=users,dc=test,dc=net "drink:-:Water" Removes water from the drink list for joe... Ex4: admod -b cn=joe,cn=users,dc=test,dc=net "drink:+:Vodka" Adds vodka to the drink list for joe... Ex5: admod -b cn=joe,cn=users,dc=test,dc=net "drink::Water" Replaces the entire list with just water for joe... Ex6: admod -b cn=joe,cn=users,dc=test,dc=net "drink:+-:Water;Lemonade" Replaces the entire list with water and lemonade for joe... Ex7: admod -b cn=someuser,cn=users,dc=test,dc=net objectclass::user samaccountname::someuser Create disabled user someuser. Ex8: admod -b cn=someuser,cn=users,dc=test,dc=net -move ou=u,dc=test,dc=com Move user someuser to ou=u. Ex8: admod -b cn=someuser,cn=users,dc=test,dc=net -rm Delete someuser. This software is Freeware. Use it as you wish at your own risk. I do not warrant this software to be fit for any purpose or use and I do not guarantee that it will not damage or destroy your system. See full Warranty documentation on www.joeware.net. If you have improvement ideas, bugs, or just wish to say Hi, I receive email 24x7 and read it in a semi-regular timeframe. You can usually find me at joe@joeware.net
Rating 3.00 out of 5

Comments are closed.

[joeware – never stop exploring… :) is proudly powered by WordPress.]