Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Server > Active Directory > Cannot Bind to ADAM using internal inetOrgPerson account

Reply
Thread Tools Display Modes

Cannot Bind to ADAM using internal inetOrgPerson account

 
 
Greg Bartholomew
Guest
Posts: n/a

 
      05-16-2007
Hi,

I've created an inetOrgPerson account in ADAM and used ADSI Edit to set the
account's password but I cannot bind to the server using simple bind and the
account. LDP just reports, "error 49 - invalid credentials". I'm connected
to the server via ssl. Is there a trick that I am missing here?

Thanks,
Greg Bartholomew
CS System Support
SIUE


 
Reply With Quote
 
 
 
 
Lee Flight
Guest
Posts: n/a

 
      05-17-2007
Hi

is this inetOrgPerson from MS-InetOrgPerson.LDF that comes with or from an
LDIF that you have supplied? One thing to check immediately is that the
msDS-UserAccountDisabled
of the account is not TRUE, as if an account is created, initially without a
valid password the account will be disabled.

Lee Flight

"Greg Bartholomew" <> wrote in message
news:...
> Hi,
>
> I've created an inetOrgPerson account in ADAM and used ADSI Edit to set
> the account's password but I cannot bind to the server using simple bind
> and the account. LDP just reports, "error 49 - invalid credentials". I'm
> connected to the server via ssl. Is there a trick that I am missing here?
>
> Thanks,
> Greg Bartholomew
> CS System Support
> SIUE
>
>



 
Reply With Quote
 
Greg Bartholomew
Guest
Posts: n/a

 
      05-17-2007
The "msDS-UserAccountDisabled" property that you speek of does not appear on
my inetOrgPerson account in ADSI Edit. I got the inetOrgPerson schema from
the MS-AdamSchemaW2K3.LDF that came with the Windows Server R2's ADAM
installation. Do I need to import the MS-InetOrgPerson.LDF as well for this
to work? Are the two LDFs compatable?

Thanks,
Greg

"Lee Flight" <-nospam> wrote in message
news:...
> Hi
>
> is this inetOrgPerson from MS-InetOrgPerson.LDF that comes with or from an
> LDIF that you have supplied? One thing to check immediately is that the
> msDS-UserAccountDisabled
> of the account is not TRUE, as if an account is created, initially without
> a valid password the account will be disabled.
>
> Lee Flight
>
> "Greg Bartholomew" <> wrote in message
> news:...
>> Hi,
>>
>> I've created an inetOrgPerson account in ADAM and used ADSI Edit to set
>> the account's password but I cannot bind to the server using simple bind
>> and the account. LDP just reports, "error 49 - invalid credentials".
>> I'm connected to the server via ssl. Is there a trick that I am missing
>> here?
>>
>> Thanks,
>> Greg Bartholomew
>> CS System Support
>> SIUE
>>
>>

>
>



 
Reply With Quote
 
Greg Bartholomew
Guest
Posts: n/a

 
      05-17-2007
Tracing through things in AD Schema Analyzer and the LDF files, It looks
like I am supposed to be getting the msDS-UserAccountDisabled property from
the msDS-BindableObject auxillery class which in turn comes with the
securityPrincipal class which, according to the MS-AdamSchemaW2K3.LDF
appears to be tied to the User class (whew - with such levels of complexity,
I'm now supprised that any of it works at all). Anyway, below is what I
imported to create my inetOrgPerson account. Why do I not seem to have the
property in question?

dn: cn=root,CN=Accounts,DC=X
changetype: add
cn: root
sn: root
objectClass: top
objectClass: person
objectClass: organizationalPerson
objectClass: inetOrgPerson
objectClass: sambaSAMAccount
objectClass: posixAccount
objectClass: shadowAccount
gidNumber: 0
uid: root
uidNumber: 0
homeDirectory: /root
unixHomeDirectory: /root
displayName: root
sambaPwdLastSet: 0
sambaLogonTime: 0
sambaLogoffTime: 2147483647
sambaKickoffTime: 2147483647
sambaPwdCanChange: 0
sambaPwdMustChange: 2147483647
sambaHomePath: \\NIS\root
sambaHomeDrive: Z:
sambaProfilePath: \\NIS\profiles\root
sambaPrimaryGroupSID: S-1-5-21-3959745451-2085038887-806689059-512
sambaLMPassword: XXX
sambaNTPassword: XXX
sambaAcctFlags: [UX ]
sambaSID: S-1-5-21-3959745451-2085038887-806689059-500
loginShell: /bin/bash
gecos: Netbios Domain Administrator

Thanks,
gb

"Greg Bartholomew" <> wrote in message
news:...
> The "msDS-UserAccountDisabled" property that you speek of does not appear
> on my inetOrgPerson account in ADSI Edit. I got the inetOrgPerson schema
> from the MS-AdamSchemaW2K3.LDF that came with the Windows Server R2's ADAM
> installation. Do I need to import the MS-InetOrgPerson.LDF as well for
> this to work? Are the two LDFs compatable?
>
> Thanks,
> Greg
>
> "Lee Flight" <-nospam> wrote in message
> news:...
>> Hi
>>
>> is this inetOrgPerson from MS-InetOrgPerson.LDF that comes with or from
>> an LDIF that you have supplied? One thing to check immediately is that
>> the
>> msDS-UserAccountDisabled
>> of the account is not TRUE, as if an account is created, initially
>> without a valid password the account will be disabled.
>>
>> Lee Flight
>>
>> "Greg Bartholomew" <> wrote in message
>> news:...
>>> Hi,
>>>
>>> I've created an inetOrgPerson account in ADAM and used ADSI Edit to set
>>> the account's password but I cannot bind to the server using simple bind
>>> and the account. LDP just reports, "error 49 - invalid credentials".
>>> I'm connected to the server via ssl. Is there a trick that I am missing
>>> here?
>>>
>>> Thanks,
>>> Greg Bartholomew
>>> CS System Support
>>> SIUE
>>>
>>>

>>
>>

>
>



 
Reply With Quote
 
Greg Bartholomew
Guest
Posts: n/a

 
      05-17-2007
I just noticed that I didn't explicitly specify "objectClass: user" in my
ldif but, even so, user is showing up in ADSI Edit on the objectClass
attribute of my "root" account. It looks like inetOrgPerson is derrived
from the user class so I am guessing that I shouldn't need to explicity list
it during import to get the BindableObject auxillary class. Am I right?

gb

"Greg Bartholomew" <> wrote in message
news:...
> Tracing through things in AD Schema Analyzer and the LDF files, It looks
> like I am supposed to be getting the msDS-UserAccountDisabled property
> from the msDS-BindableObject auxillery class which in turn comes with the
> securityPrincipal class which, according to the MS-AdamSchemaW2K3.LDF
> appears to be tied to the User class (whew - with such levels of
> complexity, I'm now supprised that any of it works at all). Anyway, below
> is what I imported to create my inetOrgPerson account. Why do I not seem
> to have the property in question?
>
> dn: cn=root,CN=Accounts,DC=X
> changetype: add
> cn: root
> sn: root
> objectClass: top
> objectClass: person
> objectClass: organizationalPerson
> objectClass: inetOrgPerson
> objectClass: sambaSAMAccount
> objectClass: posixAccount
> objectClass: shadowAccount
> gidNumber: 0
> uid: root
> uidNumber: 0
> homeDirectory: /root
> unixHomeDirectory: /root
> displayName: root
> sambaPwdLastSet: 0
> sambaLogonTime: 0
> sambaLogoffTime: 2147483647
> sambaKickoffTime: 2147483647
> sambaPwdCanChange: 0
> sambaPwdMustChange: 2147483647
> sambaHomePath: \\NIS\root
> sambaHomeDrive: Z:
> sambaProfilePath: \\NIS\profiles\root
> sambaPrimaryGroupSID: S-1-5-21-3959745451-2085038887-806689059-512
> sambaLMPassword: XXX
> sambaNTPassword: XXX
> sambaAcctFlags: [UX ]
> sambaSID: S-1-5-21-3959745451-2085038887-806689059-500
> loginShell: /bin/bash
> gecos: Netbios Domain Administrator
>
> Thanks,
> gb
>
> "Greg Bartholomew" <> wrote in message
> news:...
>> The "msDS-UserAccountDisabled" property that you speek of does not appear
>> on my inetOrgPerson account in ADSI Edit. I got the inetOrgPerson schema
>> from the MS-AdamSchemaW2K3.LDF that came with the Windows Server R2's
>> ADAM installation. Do I need to import the MS-InetOrgPerson.LDF as well
>> for this to work? Are the two LDFs compatable?
>>
>> Thanks,
>> Greg
>>
>> "Lee Flight" <-nospam> wrote in message
>> news:...
>>> Hi
>>>
>>> is this inetOrgPerson from MS-InetOrgPerson.LDF that comes with or from
>>> an LDIF that you have supplied? One thing to check immediately is that
>>> the
>>> msDS-UserAccountDisabled
>>> of the account is not TRUE, as if an account is created, initially
>>> without a valid password the account will be disabled.
>>>
>>> Lee Flight
>>>
>>> "Greg Bartholomew" <> wrote in message
>>> news:...
>>>> Hi,
>>>>
>>>> I've created an inetOrgPerson account in ADAM and used ADSI Edit to set
>>>> the account's password but I cannot bind to the server using simple
>>>> bind and the account. LDP just reports, "error 49 - invalid
>>>> credentials". I'm connected to the server via ssl. Is there a trick
>>>> that I am missing here?
>>>>
>>>> Thanks,
>>>> Greg Bartholomew
>>>> CS System Support
>>>> SIUE
>>>>
>>>>
>>>
>>>

>>
>>

>
>



 
Reply With Quote
 
Lee Flight
Guest
Posts: n/a

 
      05-17-2007
Hi

nearly.

inetOrgPerson is subClassof user in the W2K3 LDF but user in that
LDF is not a bindable object in ADAM. You need to update your user
classSchema in ADAM e.g.

dn: CN=User,CN=Schema,CN=Configuration,DC=X
changetype: Modify
add: auxiliaryClass
auxiliaryClass: msDS-BindableObject
-

dn:
changetype: modify
add: schemaUpdateNow
schemaUpdateNow: 1
-

imported using (ignore line wraps below)

ldifde -i -f <file as above> -s <ADAMserver>:<ADAMport> -c
"CN=Schema,CN=Configuration,DC=X" #schemaNamingContext


Lee Flight

"Greg Bartholomew" <> wrote in message
news:...
>I just noticed that I didn't explicitly specify "objectClass: user" in my
>ldif but, even so, user is showing up in ADSI Edit on the objectClass
>attribute of my "root" account. It looks like inetOrgPerson is derrived
>from the user class so I am guessing that I shouldn't need to explicity
>list it during import to get the BindableObject auxillary class. Am I
>right?
>
> gb
>
> "Greg Bartholomew" <> wrote in message
> news:...
>> Tracing through things in AD Schema Analyzer and the LDF files, It looks
>> like I am supposed to be getting the msDS-UserAccountDisabled property
>> from the msDS-BindableObject auxillery class which in turn comes with the
>> securityPrincipal class which, according to the MS-AdamSchemaW2K3.LDF
>> appears to be tied to the User class (whew - with such levels of
>> complexity, I'm now supprised that any of it works at all). Anyway,
>> below is what I imported to create my inetOrgPerson account. Why do I
>> not seem to have the property in question?
>>
>> dn: cn=root,CN=Accounts,DC=X
>> changetype: add
>> cn: root
>> sn: root
>> objectClass: top
>> objectClass: person
>> objectClass: organizationalPerson
>> objectClass: inetOrgPerson
>> objectClass: sambaSAMAccount
>> objectClass: posixAccount
>> objectClass: shadowAccount
>> gidNumber: 0
>> uid: root
>> uidNumber: 0
>> homeDirectory: /root
>> unixHomeDirectory: /root
>> displayName: root
>> sambaPwdLastSet: 0
>> sambaLogonTime: 0
>> sambaLogoffTime: 2147483647
>> sambaKickoffTime: 2147483647
>> sambaPwdCanChange: 0
>> sambaPwdMustChange: 2147483647
>> sambaHomePath: \\NIS\root
>> sambaHomeDrive: Z:
>> sambaProfilePath: \\NIS\profiles\root
>> sambaPrimaryGroupSID: S-1-5-21-3959745451-2085038887-806689059-512
>> sambaLMPassword: XXX
>> sambaNTPassword: XXX
>> sambaAcctFlags: [UX ]
>> sambaSID: S-1-5-21-3959745451-2085038887-806689059-500
>> loginShell: /bin/bash
>> gecos: Netbios Domain Administrator
>>
>> Thanks,
>> gb
>>
>> "Greg Bartholomew" <> wrote in message
>> news:...
>>> The "msDS-UserAccountDisabled" property that you speek of does not
>>> appear on my inetOrgPerson account in ADSI Edit. I got the
>>> inetOrgPerson schema from the MS-AdamSchemaW2K3.LDF that came with the
>>> Windows Server R2's ADAM installation. Do I need to import the
>>> MS-InetOrgPerson.LDF as well for this to work? Are the two LDFs
>>> compatable?
>>>
>>> Thanks,
>>> Greg
>>>
>>> "Lee Flight" <-nospam> wrote in message
>>> news:...
>>>> Hi
>>>>
>>>> is this inetOrgPerson from MS-InetOrgPerson.LDF that comes with or from
>>>> an LDIF that you have supplied? One thing to check immediately is that
>>>> the
>>>> msDS-UserAccountDisabled
>>>> of the account is not TRUE, as if an account is created, initially
>>>> without a valid password the account will be disabled.
>>>>
>>>> Lee Flight
>>>>
>>>> "Greg Bartholomew" <> wrote in message
>>>> news:...
>>>>> Hi,
>>>>>
>>>>> I've created an inetOrgPerson account in ADAM and used ADSI Edit to
>>>>> set the account's password but I cannot bind to the server using
>>>>> simple bind and the account. LDP just reports, "error 49 - invalid
>>>>> credentials". I'm connected to the server via ssl. Is there a trick
>>>>> that I am missing here?
>>>>>
>>>>> Thanks,
>>>>> Greg Bartholomew
>>>>> CS System Support
>>>>> SIUE
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>

>>
>>

>
>



 
Reply With Quote
 
Greg Bartholomew
Guest
Posts: n/a

 
      05-17-2007
Hurra! The authentication is working now.

Thanks Lee. Your patch worked. I had read the dependancy chain the wrong
way in the Schema Analyser. It shows that msDS-BindableObject is a subclass
of securityPrincipal, not vice versa. So that is why it was not suffecient
that User had an auxillary class of securityPrincipal. I see that the
MS-InetOrgPerson.LDF does define the User class as a bindable object. This
descrepancy is diffenately something to remember to watch out for.

Thanks Again,
gb

"Lee Flight" <-nospam> wrote in message
news:...
> Hi
>
> nearly.
>
> inetOrgPerson is subClassof user in the W2K3 LDF but user in that
> LDF is not a bindable object in ADAM. You need to update your user
> classSchema in ADAM e.g.
>
> dn: CN=User,CN=Schema,CN=Configuration,DC=X
> changetype: Modify
> add: auxiliaryClass
> auxiliaryClass: msDS-BindableObject
> -
>
> dn:
> changetype: modify
> add: schemaUpdateNow
> schemaUpdateNow: 1
> -
>
> imported using (ignore line wraps below)
>
> ldifde -i -f <file as above> -s <ADAMserver>:<ADAMport> -c
> "CN=Schema,CN=Configuration,DC=X" #schemaNamingContext
>
>
> Lee Flight
>
> "Greg Bartholomew" <> wrote in message
> news:...
>>I just noticed that I didn't explicitly specify "objectClass: user" in my
>>ldif but, even so, user is showing up in ADSI Edit on the objectClass
>>attribute of my "root" account. It looks like inetOrgPerson is derrived
>>from the user class so I am guessing that I shouldn't need to explicity
>>list it during import to get the BindableObject auxillary class. Am I
>>right?
>>
>> gb
>>
>> "Greg Bartholomew" <> wrote in message
>> news:...
>>> Tracing through things in AD Schema Analyzer and the LDF files, It looks
>>> like I am supposed to be getting the msDS-UserAccountDisabled property
>>> from the msDS-BindableObject auxillery class which in turn comes with
>>> the securityPrincipal class which, according to the
>>> MS-AdamSchemaW2K3.LDF appears to be tied to the User class (whew - with
>>> such levels of complexity, I'm now supprised that any of it works at
>>> all). Anyway, below is what I imported to create my inetOrgPerson
>>> account. Why do I not seem to have the property in question?
>>>
>>> dn: cn=root,CN=Accounts,DC=X
>>> changetype: add
>>> cn: root
>>> sn: root
>>> objectClass: top
>>> objectClass: person
>>> objectClass: organizationalPerson
>>> objectClass: inetOrgPerson
>>> objectClass: sambaSAMAccount
>>> objectClass: posixAccount
>>> objectClass: shadowAccount
>>> gidNumber: 0
>>> uid: root
>>> uidNumber: 0
>>> homeDirectory: /root
>>> unixHomeDirectory: /root
>>> displayName: root
>>> sambaPwdLastSet: 0
>>> sambaLogonTime: 0
>>> sambaLogoffTime: 2147483647
>>> sambaKickoffTime: 2147483647
>>> sambaPwdCanChange: 0
>>> sambaPwdMustChange: 2147483647
>>> sambaHomePath: \\NIS\root
>>> sambaHomeDrive: Z:
>>> sambaProfilePath: \\NIS\profiles\root
>>> sambaPrimaryGroupSID: S-1-5-21-3959745451-2085038887-806689059-512
>>> sambaLMPassword: XXX
>>> sambaNTPassword: XXX
>>> sambaAcctFlags: [UX ]
>>> sambaSID: S-1-5-21-3959745451-2085038887-806689059-500
>>> loginShell: /bin/bash
>>> gecos: Netbios Domain Administrator
>>>
>>> Thanks,
>>> gb
>>>
>>> "Greg Bartholomew" <> wrote in message
>>> news:...
>>>> The "msDS-UserAccountDisabled" property that you speek of does not
>>>> appear on my inetOrgPerson account in ADSI Edit. I got the
>>>> inetOrgPerson schema from the MS-AdamSchemaW2K3.LDF that came with the
>>>> Windows Server R2's ADAM installation. Do I need to import the
>>>> MS-InetOrgPerson.LDF as well for this to work? Are the two LDFs
>>>> compatable?
>>>>
>>>> Thanks,
>>>> Greg
>>>>
>>>> "Lee Flight" <-nospam> wrote in message
>>>> news:...
>>>>> Hi
>>>>>
>>>>> is this inetOrgPerson from MS-InetOrgPerson.LDF that comes with or
>>>>> from an LDIF that you have supplied? One thing to check immediately is
>>>>> that the
>>>>> msDS-UserAccountDisabled
>>>>> of the account is not TRUE, as if an account is created, initially
>>>>> without a valid password the account will be disabled.
>>>>>
>>>>> Lee Flight
>>>>>
>>>>> "Greg Bartholomew" <> wrote in message
>>>>> news:...
>>>>>> Hi,
>>>>>>
>>>>>> I've created an inetOrgPerson account in ADAM and used ADSI Edit to
>>>>>> set the account's password but I cannot bind to the server using
>>>>>> simple bind and the account. LDP just reports, "error 49 - invalid
>>>>>> credentials". I'm connected to the server via ssl. Is there a trick
>>>>>> that I am missing here?
>>>>>>
>>>>>> Thanks,
>>>>>> Greg Bartholomew
>>>>>> CS System Support
>>>>>> SIUE
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>

>>
>>

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ADAM Bind ??? François Active Directory 3 02-05-2008 08:49 AM
ADSI Edit bind to ADAM using ADAM principal? vidarkongsli Active Directory 1 01-31-2007 02:02 PM
ADAM: inetOrgperson /userPasswords Eoin Mooney Active Directory 1 10-07-2004 04:52 PM
ldp cannot bind to ADAM mikemai Active Directory 1 08-11-2004 06:32 AM
ADAM internal error when creating account Bill Scherer Active Directory 9 07-07-2004 07:43 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59