You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@directory.apache.org by Paul Johnston <pa...@pentest.co.uk> on 2014/09/12 15:10:15 UTC

Service accounts

Hi,

I need to include some service accounts in our directory. These are
application users (i.e. used by software, not people) that need to
connect to LDAP. At the moment I am using inetOrgPerson for these
accounts. But this isn't ideal as they appear in the address book (which
filters on "person"). What objectclass should I be using?

Thanks,

Paul

-- 
Pentest - The Application Security Specialists
*Shortlisted for Best Security Company, SC Magazine Europe 2014*

Pentest Limited
Paul Johnston - IT Security Consultant
Office 	: +44 (0) 161 233 0100
Mobile 	: +44 (0) 7817 219 072
Email policy 	: http://www.pentest.co.uk/legal.shtml#emailpolicy
Registered Number: 	: 4217114 England & Wales
Registered Office: 	: 26a The Downs, Altrincham, Cheshire, WA14 2PU, UK
Certifications 	: ISO 9001 (50155) / ISO 27001 (IS 558982) / Tiger Scheme


Re: Service accounts

Posted by Paul Johnston <pa...@pentest.co.uk>.
Hi,

Ok, I have found "account" + "simpleSecurityObject" is the best comination.

Thanks for your help Emmanuel!

Paul


On 12/09/2014 16:09, Paul Johnston wrote:
> Hi,
>
> I would use simpleSecurityObject, but that is an auxiliary class, so I
> also need a structural class.
>
> Reason for asking here is that I expect a service account is a common
> requirement, so I was hoping someone would have practical experience.
>
> Thanks for the suggestions,
>
> Paul
>
>
> On 12/09/2014 15:48, Emmanuel Lécharny wrote:
>> Le 12/09/14 16:15, Paul Johnston a écrit :
>>> Hi,
>>>
>>> Thanks Emmanuel. I guess that is an option, but it has a number of compulsory 
>>> fields (e.g. uidNumber) that don't really apply to this account. Any other ideas?
>> The thing is to know what AttributeType you want to store in this
>> ObjectClass. Typically, if a userPassword is a requirement, then you
>> have a chice between those ObjectClasses :
>>
>> - dmd
>> - domain
>> - organization
>> - organizationalUnit
>> - person
>> - posixAccount
>> - posixGroup
>> - shadowAccount
>> - simpleSecurityObject
>>
>> Here, I can't really help, it's really up to you to define what you need.
>>
>> Last, not least, you can create your own ObjectClass and add the needed
>> AttributeType into it.
>>
>
> -- 
> Pentest - The Application Security Specialists
> *Shortlisted for Best Security Company, SC Magazine Europe 2014*
>
> Pentest Limited
> Paul Johnston - IT Security Consultant
> Office 	: +44 (0) 161 233 0100
> Mobile 	: +44 (0) 7817 219 072
> Email policy 	: http://www.pentest.co.uk/legal.shtml#emailpolicy
> Registered Number: 	: 4217114 England & Wales
> Registered Office: 	: 26a The Downs, Altrincham, Cheshire, WA14 2PU, UK
> Certifications 	: ISO 9001 (50155) / ISO 27001 (IS 558982) / Tiger Scheme
>

-- 
Pentest - The Application Security Specialists
*Shortlisted for Best Security Company, SC Magazine Europe 2014*

Pentest Limited
Paul Johnston - IT Security Consultant
Office 	: +44 (0) 161 233 0100
Mobile 	: +44 (0) 7817 219 072
Email policy 	: http://www.pentest.co.uk/legal.shtml#emailpolicy
Registered Number: 	: 4217114 England & Wales
Registered Office: 	: 26a The Downs, Altrincham, Cheshire, WA14 2PU, UK
Certifications 	: ISO 9001 (50155) / ISO 27001 (IS 558982) / Tiger Scheme


Re: Service accounts

Posted by Paul Johnston <pa...@pentest.co.uk>.
Hi,

I would use simpleSecurityObject, but that is an auxiliary class, so I
also need a structural class.

Reason for asking here is that I expect a service account is a common
requirement, so I was hoping someone would have practical experience.

Thanks for the suggestions,

Paul


On 12/09/2014 15:48, Emmanuel Lécharny wrote:
> Le 12/09/14 16:15, Paul Johnston a écrit :
>> Hi,
>>
>> Thanks Emmanuel. I guess that is an option, but it has a number of compulsory 
>> fields (e.g. uidNumber) that don't really apply to this account. Any other ideas?
> The thing is to know what AttributeType you want to store in this
> ObjectClass. Typically, if a userPassword is a requirement, then you
> have a chice between those ObjectClasses :
>
> - dmd
> - domain
> - organization
> - organizationalUnit
> - person
> - posixAccount
> - posixGroup
> - shadowAccount
> - simpleSecurityObject
>
> Here, I can't really help, it's really up to you to define what you need.
>
> Last, not least, you can create your own ObjectClass and add the needed
> AttributeType into it.
>

-- 
Pentest - The Application Security Specialists
*Shortlisted for Best Security Company, SC Magazine Europe 2014*

Pentest Limited
Paul Johnston - IT Security Consultant
Office 	: +44 (0) 161 233 0100
Mobile 	: +44 (0) 7817 219 072
Email policy 	: http://www.pentest.co.uk/legal.shtml#emailpolicy
Registered Number: 	: 4217114 England & Wales
Registered Office: 	: 26a The Downs, Altrincham, Cheshire, WA14 2PU, UK
Certifications 	: ISO 9001 (50155) / ISO 27001 (IS 558982) / Tiger Scheme


Re: Service accounts

Posted by Emmanuel Lécharny <el...@gmail.com>.
Le 12/09/14 16:15, Paul Johnston a écrit :
> Hi,
>
> Thanks Emmanuel. I guess that is an option, but it has a number of compulsory 
> fields (e.g. uidNumber) that don't really apply to this account. Any other ideas?

The thing is to know what AttributeType you want to store in this
ObjectClass. Typically, if a userPassword is a requirement, then you
have a chice between those ObjectClasses :

- dmd
- domain
- organization
- organizationalUnit
- person
- posixAccount
- posixGroup
- shadowAccount
- simpleSecurityObject

Here, I can't really help, it's really up to you to define what you need.

Last, not least, you can create your own ObjectClass and add the needed
AttributeType into it.

Re: Service accounts

Posted by Paul Johnston <pa...@pentest.co.uk>.
Hi,

Thanks Emmanuel. I guess that is an option, but it has a number of
compulsory fields (e.g. uidNumber) that don't really apply to this
account. Any other ideas?

Paul


On 12/09/2014 15:04, Emmanuel Lécharny wrote:
> Le 12/09/14 15:10, Paul Johnston a écrit :
>> Hi,
>>
>> I need to include some service accounts in our directory. These are application 
>> users (i.e. used by software, not people) that need to connect to LDAP. At the 
>> moment I am using inetOrgPerson for these accounts. But this isn't ideal as they 
>> appear in the address book (which filters on "person"). What objectclass should 
>> I be using?
> There is an 'posixAccount' ObjectClass that might fit your need :
>
> objectclass ( 1.3.6.1.1.1.2.0 NAME 'posixAccount' SUP top <http://www.zytrax.com/books/ldap/ape/core-schema.html#top> AUXILIARY
> 	DESC 'Abstraction of an account with POSIX attributes'
> 	MUST ( cn <http://www.zytrax.com/books/ldap/ape/core-schema.html#commonname> $ uid <http://www.zytrax.com/books/ldap/ape/core-schema.html#uid> $ uidNumber <http://www.zytrax.com/books/ldap/ape/nis.html#uidnumber> $ gidNumber <http://www.zytrax.com/books/ldap/ape/nis.html#gidnumber> $ homeDirectory <http://www.zytrax.com/books/ldap/ape/nis.html#homedirectory> )
> 	MAY ( userPassword <http://www.zytrax.com/books/ldap/ape/core-schema.html#userpassword> $ loginShell <http://www.zytrax.com/books/ldap/ape/nis.html#loginshell> $ gecos <http://www.zytrax.com/books/ldap/ape/nis.html#gecos> $ description <http://www.zytrax.com/books/ldap/ape/core-schema.html#description> ) )
>
>
>
>

-- 
Pentest - The Application Security Specialists
*Shortlisted for Best Security Company, SC Magazine Europe 2014*

Pentest Limited
Paul Johnston - IT Security Consultant
Office 	: +44 (0) 161 233 0100
Mobile 	: +44 (0) 7817 219 072
Email policy 	: http://www.pentest.co.uk/legal.shtml#emailpolicy
Registered Number: 	: 4217114 England & Wales
Registered Office: 	: 26a The Downs, Altrincham, Cheshire, WA14 2PU, UK
Certifications 	: ISO 9001 (50155) / ISO 27001 (IS 558982) / Tiger Scheme


Re: Service accounts

Posted by Emmanuel Lécharny <el...@gmail.com>.
Le 12/09/14 15:10, Paul Johnston a écrit :
> Hi,
>
> I need to include some service accounts in our directory. These are application 
> users (i.e. used by software, not people) that need to connect to LDAP. At the 
> moment I am using inetOrgPerson for these accounts. But this isn't ideal as they 
> appear in the address book (which filters on "person"). What objectclass should 
> I be using?
There is an 'posixAccount' ObjectClass that might fit your need :

objectclass ( 1.3.6.1.1.1.2.0 NAME 'posixAccount' SUP top <http://www.zytrax.com/books/ldap/ape/core-schema.html#top> AUXILIARY
	DESC 'Abstraction of an account with POSIX attributes'
	MUST ( cn <http://www.zytrax.com/books/ldap/ape/core-schema.html#commonname> $ uid <http://www.zytrax.com/books/ldap/ape/core-schema.html#uid> $ uidNumber <http://www.zytrax.com/books/ldap/ape/nis.html#uidnumber> $ gidNumber <http://www.zytrax.com/books/ldap/ape/nis.html#gidnumber> $ homeDirectory <http://www.zytrax.com/books/ldap/ape/nis.html#homedirectory> )
	MAY ( userPassword <http://www.zytrax.com/books/ldap/ape/core-schema.html#userpassword> $ loginShell <http://www.zytrax.com/books/ldap/ape/nis.html#loginshell> $ gecos <http://www.zytrax.com/books/ldap/ape/nis.html#gecos> $ description <http://www.zytrax.com/books/ldap/ape/core-schema.html#description> ) )