English 中文(简体)
如何在用LDAP.JS/LDAP.TS创建用户之后积极工作?
原标题:How to active a user after creating one with LDAP.JS/LDAP.TS?

I m using LDAP.TS to automatize the users creation from glpi(don t matters on this history); So, after create the user, he becomes disabled, from my researchs, the property i need to pass on the ceration of the user are the : userAccountControl. But if i pass this value, i will receive the follow error 0000052D: SvcErr: DSID-031A12D2, problem 5003 (WILL_NOT_PERFORM), data 0. Is there a option on Active Directory that don t allow the bind of this property?

<<>User Example>>

const user = {
        accountExpires:  9223372036854775807 ,
        cn:  Francine Vidal De Souza ,
        company:  Tecverde ,
        department:  Diretoria Administrativo Financeira ,
        description:  55. Diretoria Administrativo Financeira ,
        displayName:  Francine Vidal De Souza ,
        distinguishedName:  CN=Francine Vidal De Souza, OU=USUARIOS,OU=TECVERDE,DC=tecverde,DC=local ,
        givenName:  Francine Vidal ,
        instanceType:  4 ,
        mail:  francine.vidal@tecverde.com.br ,
        manager:  CN=Ronaldo Passeri,OU=USUARIOS,OU=TECVERDE,DC=tecverde,DC=local ,
        name:  Francine Vidal De Souza ,
        objectClass: [  top ,  person ,  organizationalPerson ,  user  ],
        physicalDeliveryOfficeName:  Diretoria Administrativo Financeira ,
        sn:  De Souza ,
        title:  Cfo ,
        userPrincipalName:  francine.vidal@tecverde.local ,
        sAMAccountName:  francine.vidal ,
        userPassword:  ***** ,
        userAccountControl: `66048`,
        objectCategory:  CN=Person,CN=Schema,CN=Configuration,DC=tecverde,DC=local 
    }

我只需要用户能够直接从酒吧的产生中受益,而不需要主动向用户提供服务。

问题回答

你们是否使用LDAPS(LDAP over SSL on Port 636)? 连接必须加以加密,以便确定密码。 如果账户没有密码,则该账户通常会因违约而残疾,如果你试图对密码和未加密的链接提出密码,或试图促成一个没有密码的账户,则将出现“不愿意履行”错误。

<编码>用户密码属性不得用来确定密码。 设置密码的实际属性是:>,,但采用具体格式。 这项职能将提供给你(从:):

function encodePassword(password) {
    return new Buffer( "  + password +  " ,  utf16le ).toString();
}

因此,不在此列:

userPassword:  ***** ,

使用:

unicodePwd: encodePassword( ***** ),




相关问题
selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

How to fire event handlers on the link using javascript

I would like to click a link in my page using javascript. I would like to Fire event handlers on the link without navigating. How can this be done? This has to work both in firefox and Internet ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Clipboard access using Javascript - sans Flash?

Is there a reliable way to access the client machine s clipboard using Javascript? I continue to run into permissions issues when attempting to do this. How does Google Docs do this? Do they use ...

javascript debugging question

I have a large javascript which I didn t write but I need to use it and I m slowely going trough it trying to figure out what does it do and how, I m using alert to print out what it does but now I ...

Parsing date like twitter

I ve made a little forum and I want parse the date on newest posts like twitter, you know "posted 40 minutes ago ","posted 1 hour ago"... What s the best way ? Thanx.

热门标签