Go to www.globalscape.com  


Knowledge Base



Home : Script to create a user causes the following error: MX Error: 27 (0000001B)
Q10541 - ERRMSG: Script to create a user causes the following error: MX Error: 27 (0000001B)
THE INFORMATION IN THIS ARTICLE APPLIES TO:
  • EFT Server version 6.x
SYMPTOM
 

When running scripts to create a user, I get the following error:

MX Error: 27 (0000001B)

RESOLUTION
 

“MX Error: 27 (0000001B)” means “Already exists.” This error occurs when using a Create method (e.g., CreateUser) when the COM API tries to create an entity whose name duplicates the name of an existing entity.

To avoid this error, design the script to check the presence of the named entity before attempting to create a new one (e.g., GetUsers).

The CreateUser[Ex] method will fail if a simple password is provided and enforce complex passwords is enabled in EFT Server. For example, the following will fail if "enforce complex passwords" is enabled in EFT Server:

oSite.CreateUser "tuser1", "testpassword", 0 "New User"

For the method to work, you must do one of the following:

  • Disable enforcement of complex passwords.

  • Provide a complex password. For example:

oSite.CreateUser "test", "$1$Bn3YdWKv$.BS3Qb2UQTV4SmV1JNN.w/", 0, "New User"

  • Call the CreateComplexPassword method and use the resulting string in the CreateUser[Ex] method. For example (in pseudo code):

strUserPass = oUserSettings.CreateComplexPassword()

oSite.CreateUser "test", strUserPass, 0, "New User"

Related Articles
No Related Articles Available.

Article Attachments
No Attachments Available.

Related External Links
No Related Links Available.
Help us improve this article...
What did you think of this article?

poor 
1
2
3
4
5
6
7
8
9
10

 excellent
Tell us why you rated the content this way. (optional)
 


This form is for submitting feedback about this Knowledge Base article only. No responses to questions are provided here. If you have a question about a GlobalSCAPE product and need a response, please contact the Technical Support team directly or submit your question to the user community supported User Forum.

Approved Comments...
No user comments available for this article.
Created on Friday, October 30, 2009 1:12 PM.
Last Modified on Friday, October 30, 2009 1:12 PM.
Last Modified by GlobalSCAPE 5.
Article has been viewed 240 times.
Rated 0 out of 10 based on 0 votes.
Print Article
Email Article



Try CuteSendIt, the easiest way to send files!

The information in this knowledgebase is provided "as is" and GlobalSCAPE assumes no responsibility for any typographical, technical or other inaccuracies in the information provided therein.
©2008 GlobalSCAPE - All Rights Reserved