Connect AP to a network (not the management network which contains the ontroller)
Connect with ssh to the IP of the AP.
Login in to the AP with default credentials ubnt \ ubnt
type: set-inform management-ip:808-/inform
Open the controller page and accept the AP to the management server.