ºÚÁϺ£½Ç91Èë¿Ú

User Binding Fails on Windows due to Username Length

Symptoms

  • When user is bound to a Windows system, the user is not provisioned
  • System and user status is green
  • Other users may be able to provision to the system without issue
  • The ºÚÁϺ£½Ç91Èë¿Ú Agent log c:\windows\temp\jcagent.log will show:

2016/03/18 09:27:54 [1280] XX: In AddUser() - err=In github.com/TheºÚÁϺ£½Ç91Èë¿Ú/jumpcloud-agent/winusermgr.(*WinUserMgr).AddUser, line 247: DLL call OK, returned: raw=2202, raw-NERR_BASE=102
2016/03/18 09:27:54 [1280] XX: After wm.AddUser(), retValue=2202, err2='In github.com/TheºÚÁϺ£½Ç91Èë¿Ú/jumpcloud-agent/winusermgr.(*WinUserMgr).AddUser, line 247: DLL call OK, returned: raw=2202, raw-NERR_BASE=102'
2016/03/18 09:27:54 [1280] in userMod(a_very_long_user_name, [Firstname Lastname])
2016/03/18 09:27:54 [1280] userAdd(a_very_long_user_name) failed - err=Error unsetting disable bit for user (a_very_long_user_name), err='GetUserInfo() failed, err='Could not get USER_INFO_1 structure for 'a_very_long_user_name', err='In github.com/TheºÚÁϺ£½Ç91Èë¿Ú/jumpcloud-agent/winusermgr.(*WinUserMgr).GetUserInfo, line 455: DLL call OK, returned: raw=2221, raw-NERR_BASE=121'''

Cause

The username contains more than 20 characters.

Solution

Recreate the user with less than 20 characters in the username.  In mixed or Windows only environments, it's recommended to use a naming convention for the Username to not exceed 20 characters. 

Back to Top

Still Have Questions?

If you cannot find an answer to your question in our FAQ, you can always contact us.

Submit a Case