diff options
author | gasperfele@fri1.uni-lj.si <gasperfele@fri1.uni-lj.si@5cf9fbd1-b2bc-434c-b4b7-e852f4f63414> | 2015-03-17 16:02:15 +0000 |
---|---|---|
committer | gasperfele@fri1.uni-lj.si <gasperfele@fri1.uni-lj.si@5cf9fbd1-b2bc-434c-b4b7-e852f4f63414> | 2015-03-17 16:02:15 +0000 |
commit | 4df70266cf670f5f12f3219b18e59b7aaafaf1b0 (patch) | |
tree | e45f681204b3a089086e98ac67ad83f538f66478 /kpov_judge/tasks/ldap_search | |
parent | dd9bc626dcb1af109fa12960de70a3ef53aef323 (diff) |
Fixed instructions
git-svn-id: https://svn.lusy.fri.uni-lj.si/kpov-public-svn/kpov-public@288 5cf9fbd1-b2bc-434c-b4b7-e852f4f63414
Diffstat (limited to 'kpov_judge/tasks/ldap_search')
-rw-r--r-- | kpov_judge/tasks/ldap_search/task.py | 56 |
1 files changed, 49 insertions, 7 deletions
diff --git a/kpov_judge/tasks/ldap_search/task.py b/kpov_judge/tasks/ldap_search/task.py index 4953694..5612c01 100644 --- a/kpov_judge/tasks/ldap_search/task.py +++ b/kpov_judge/tasks/ldap_search/task.py @@ -8,20 +8,62 @@ # TODO: finish this! instructions = { 'si':u""" -Ustvari dva navidezna računalnika - SimpleArbiter z diskom simpleArbiterDhcp ter LDAPServer. +Ustvari dva navidezna računalnika - SimpleArbiter z diskom simpleArbiterDhcp +ter LDAPServer. -Za povezavo na strežnik LDAP lahko uporabiš Jxplorer, kjer tudi ustvariš novega uporabnika z danim imenom in geslom. +Na LDAPServer namesti strežnik LDAP. Strežnik naj skrbi za domeno +DC={DOMAIN},DC=kpov,DC=lusy,DC=fri,DC=uni-lj,DC=si -Na LDAPServer namesti strežnik LDAP in sicer slapd z apt-get install slapd. Na SimpleArbiter preberi ime domene DOMAIN, uporabniško ime LDAP_USERNAME, geslo LDAP_PASSWORD, -uporabniško ime BIND_USERNAME ter geslo BIND_PASSWORD. Poskrbi, da se bo lahko klient s simpleArbiterDhcp povezal na LDAP strežnik na LDAPServer. -V primeru, da se klient poveže kot BIND_USERNAME z geslom BIND_PASSWORD, naj strežnik omogoči spreminjanje podatkov za objekt -CN=LDAP_USERNAME,ou=Users,DC=DOMAIN,DC=kpov,DC=lusy,DC=fri,DC=uni-lj,DC=si ter ustvarjanje novih objektov v DC=DOMAIN,DC=kpov,DC=lusy,DC=fri,DC=uni-lj,DC=si +V imeniku ustvari uporabnika +CN={LDAP_USERNAME},ou=Users,DC={DOMAIN},DC=kpov,DC=lusy,DC=fri,DC=uni-lj,DC=si + +z geslom {LDAP_PASSWORD} in uporabnika +CN={BIND_USERNAME},ou=Users,DC={DOMAIN},DC=kpov,DC=lusy,DC=fri,DC=uni-lj,DC=si +z geslom {BIND_PASSWORD} + +Poskrbi, da se bo lahko klient s simpleArbiterDhcp povezal na LDAP strežnik na LDAPServer. +V primeru, da se klient poveže kot {BIND_USERNAME} z geslom {BIND_PASSWORD}, +naj strežnik omogoči spreminjanje podatkov za objekt +CN={LDAP_USERNAME},ou=Users,DC={DOMAIN},DC=kpov,DC=lusy,DC=fri,DC=uni-lj,DC=si +ter ustvarjanje novih objektov v DC={DOMAIN},DC=kpov,DC=lusy,DC=fri,DC=uni-lj,DC=si + +CN = Common Name +OU = Organizational Unit +DC = Domain Component + +Na SimpleArbiter ustvari program, ki bo s pomočjo ldapsearch izpisal seznam lastnosti (otrok), +ki jih ima poljuben objekt v domeni {DOMAIN}.kpov.lusy.fri.uni-lj.si. +Ime objekta (CN) naj program sprejme kot prvi argument. +""", + 'en': u""" +Create two virtual machines - SimpleArbiter using the disk simpleArbiterDhcp +and LDAPServer. + +Set up an LDAP server on LDAPServer. Make it responsible for +DC={DOMAIN},DC=kpov,DC=lusy,DC=fri,DC=uni-lj,DC=si + +Create a user +CN={LDAP_USERNAME},ou=Users,DC={DOMAIN},DC=kpov,DC=lusy,DC=fri,DC=uni-lj,DC=si + +with the password {LDAP_PASSWORD} and a user +CN={BIND_USERNAME},ou=Users,DC={DOMAIN},DC=kpov,DC=lusy,DC=fri,DC=uni-lj,DC=si + +with the password {LDAP_PASSWORD} . + +Make sure that a client from simpleArbiterDhcp can connect to the LDAP server on +LDAPServer. If the client identifies themself as {BIND_USERNAME} with the password +{BIND_PASSWORD}, allow it to change data for the object + +CN={LDAP_USERNAME},ou=Users,DC={DOMAIN},DC=kpov,DC=lusy,DC=fri,DC=uni-lj,DC=si +and to create objects in DC={DOMAIN},DC=kpov,DC=lusy,DC=fri,DC=uni-lj,DC=si CN = Common Name OU = Organizational Unit DC = Domain Component -Na SimpleArbiter ustvari program, ki bo s pomočjo ldapsearch izpisal seznam lastnosti (otrok), ki jih ima poljuben objekt v domeni DOMAIN.kpov.lusy.fri.uni-lj.si. Ime objekta (CN) naj program sprejme kot prvi argument. +Create a program on SimpleArbiter which will use ldapsearch to output the list of properties +(children) of an arbitrary object under {DOMAIN}.kpov.lusy.fri.uni-lj.si. +The program will be given the CN of the object as it's first argument. """ } |