jamf / ReEnroller

Migrate macOS devices from one Jamf Server to another.
MIT License
102 stars 11 forks source link

Failed to create invitation code #13

Closed mallej closed 9 months ago

mallej commented 9 months ago

Hi i get a "Failed to create invitation code" error. What could be the cause?

/Applications/ReEnroller.app/Contents/MacOS/ReEnroller
health check result: ["401", "{  \"httpStatus\" : 401,  \"errors\" : [ ]}"]
health check result: ["200", "[]"]
jpversion: ("11.1.1", "success")
verifySSLCert setting from server: <verifySSLCert>always</verifySSLCert>
[func apiAction] endpoint:
[func apiAction] xml: <?xml version="1.0" encoding="UTF-8" standalone="no"?><computer_invitation><lifetime>2147483647</lifetime><multiple_uses_allowed>true</multiple_uses_allowed><ssh_username>jamf-mgmt</ssh_username><ssh_password_method>1</ssh_password_method><enroll_into_site><id>-1</id></enroll_into_site><keep_existing_site_membership>true</keep_existing_site_membership><create_account_if_does_not_exist>false</create_account_if_does_not_exist><hide_account>false</hide_account><lock_down_ssh>false</lock_down_ssh></computer_invitation>
[apiAction] response code: 401
[apiAction] response: <html> <head>     <title>Status page</title> </head> <body style="font-family: sans-serif;"> <p style="font-size: 1.2em;font-weight: bold;margin: 1em 0px;">Unauthorized</p> <p>The request requires user authentication</p> <p>You can get technical details <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.2">here</a>.<br>    Please continue your visit at our <a href="/">home page</a>. </p> </body> </html>
mallej commented 9 months ago

problem solved. Basic authentication was not activated in Jamf