Platform Team/Server Kit/sugar-server: Difference between revisions
No edit summary |
No edit summary |
||
| Line 19: | Line 19: | ||
* {{Code|uid}}, user's identity got after registration on a server; | * {{Code|uid}}, user's identity got after registration on a server; | ||
* {{Code| | * {{Code|machine_sn}}, serial number of hardware Sugar user is running on, e.g., serial number of a XO laptop; | ||
* {{Code| | * {{Code|machine_uuid}}, UUID value of hardware Sugar user is running on, e.g., UUID of a XO laptop; | ||
* {{Code|pubkey}}, SSH public key, this is the exact line that needs to be placed as-is to {{Code|~/.ssh/authorized_keys}} file; note that OLPC XS operates with striped version of public keys. | * {{Code|pubkey}}, SSH public key, this is the exact line that needs to be placed as-is to {{Code|~/.ssh/authorized_keys}} file; note that OLPC XS operates with striped version of public keys. | ||
| Line 51: | Line 51: | ||
* {{Code|nickname}}, user's Sugar nick name; | * {{Code|nickname}}, user's Sugar nick name; | ||
* {{Code| | * {{Code|machine_sn}}, machine's serial number, makes special sense only for XO anti-thief support and [[#Hardware_based_model|hardware based]] identity model, | ||
* {{Code| | * {{Code|machine_uuid}}, machine's UUID value, makes special sense only for XO anti-thief support, | ||
* {{Code|pubkey}}, SSH public key passed as-is. | * {{Code|pubkey}}, SSH public key passed as-is. | ||
| Line 81: | Line 81: | ||
Backward compatibility: | Backward compatibility: | ||
''dict'' '''register'''(''str'' | ''dict'' '''register'''(''str'' machine_sn, ''str'' nickname, ''str'' machine_uuid, ''str'' pubkey) | ||
To support OLPC's XS clients, RPC function to serve registration requests. The XML-RPM service will be listening {{Code|8080}} port on the {{Code|--host}} host. | To support OLPC's XS clients, RPC function to serve registration requests. The XML-RPM service will be listening {{Code|8080}} port on the {{Code|--host}} host. | ||
| Line 113: | Line 113: | ||
Interface: | Interface: | ||
GET '''/client/lease'''? | GET '''/client/lease'''?machine_sn=''MACHINE_SN'' | ||
Get OLPC anti-thief lease for specified XO's serial number. | Get OLPC anti-thief lease for specified XO's serial number. | ||