-
Notifications
You must be signed in to change notification settings - Fork 7
Custom_Scripts
Rüdiger Beck edited this page Apr 9, 2018
·
2 revisions
sophomorix offers an interface for own scripts. To program own scripts you should do the following:
Ask the AD via the following scripts:
-
sophomorix-check -ij
fetch information about the sophomorix configuration -
sophomorix-user -ij
to fetch information about users -
sophomorix-class -ij
to fetch information about classes (adminclass,teacherclass, ...) - ...
With the option -j the scripts return a JSON Object on STDERR that your script must parse (using tools of your programming language).
Modifying Attributes in the AD:
- to update some attributes you should use the following commands:
-
sophomorix-user -u <username>
to modify a user -
sophomorix-class -c <username>
to modify a class - ...
see the help (<scriptname> --help
) or manpage (man <scriptname>
) of the scripts.
For your own purposes, use the attributes sophomorixCustom*
. These custom attributes are there for you.