
Is there any way to use ldap to assign customers to companies? We have many departments and our active directory is organized according to these departments. I am hoping to use this ldap organization to automatically assign customers to companies in otrs. Has anyone figured out how to do this yet? Thanks. Greg

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi Greg, you may use attribut "company" and link it to customerid. In Kernel/Config.pm you need to set CustomerKey => 'sAMAccountName' CustomerID => 'company' Don't forget to add company to CustomerUserSearchFields-Array. Regards and HTH, Rico On Wed, 31 Oct 2007, Baker, Greg wrote:
Is there any way to use ldap to assign customers to companies? We have many departments and our active directory is organized according to these departments. I am hoping to use this ldap organization to automatically assign customers to companies in otrs. Has anyone figured out how to do this yet?
- -- Dipl.-Math. Rico Barth, Geschäftsführer/Projektleiter c.a.p.e. IT GmbH Annaberger Straße 240 , 09125 Chemnitz phone/fax: +49 371 5347-621 / -625 mobile: +49 176 66680786 mailto: rico.barth@cape-it.de , PGP-Key: 0x874C8377 internet: www.cape-it.de Geschäftsführung Rico Barth, Thomas Maier AG Chemnitz, HRB 23192 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFHMAqPmy4UBYdMg3cRAucsAJ9ELvVMFaUlj/weZwncu8H4thHXugCgmf5V A6+12FZZriDEfyjluXKXP8E= =M2Zo -----END PGP SIGNATURE-----

Okay, this makes sense to me.. Now my problem seems to be in Active Directory I have no idea how to get the OU of a person. There seems to be no OU attribute stored for each user. The OU is a part of the user's DN, but I doubt I can access just that section of the DN using a simple config option. Anyone know of an easy way to do this? Is there some kind of specially constructed ldap query that would return what I need? Greg -----Original Message----- From: Rico Barth [mailto:rico.barth@cape-it.de] Sent: Tuesday, November 06, 2007 3:03 AM To: Baker, Greg Cc: otrs@otrs.org Subject: Re: [otrs] Assigning customers to companies via ldap -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi Greg, you may use attribut "company" and link it to customerid. In Kernel/Config.pm you need to set CustomerKey => 'sAMAccountName' CustomerID => 'company' Don't forget to add company to CustomerUserSearchFields-Array. Regards and HTH, Rico On Wed, 31 Oct 2007, Baker, Greg wrote:
Is there any way to use ldap to assign customers to companies? We have many departments and our active directory is organized according to these departments. I am hoping to use this ldap organization to automatically assign customers to companies in otrs. Has anyone figured out how to do this yet?
- -- Dipl.-Math. Rico Barth, Geschäftsführer/Projektleiter c.a.p.e. IT GmbH Annaberger Straße 240 , 09125 Chemnitz phone/fax: +49 371 5347-621 / -625 mobile: +49 176 66680786 mailto: rico.barth@cape-it.de , PGP-Key: 0x874C8377 internet: www.cape-it.de Geschäftsführung Rico Barth, Thomas Maier AG Chemnitz, HRB 23192 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFHMAqPmy4UBYdMg3cRAucsAJ9ELvVMFaUlj/weZwncu8H4thHXugCgmf5V A6+12FZZriDEfyjluXKXP8E= =M2Zo -----END PGP SIGNATURE-----

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi Greg, Baker, Greg schrieb:
Okay, this makes sense to me..
Now my problem seems to be in Active Directory I have no idea how to get the OU of a person. There seems to be no OU attribute stored for each user. The OU is a part of the user's DN, but I doubt I can access just that section of the DN using a simple config option.
Anyone know of an easy way to do this? Is there some kind of specially constructed ldap query that would return what I need?
...try attribute 'department' - it was the 'OU' in my latest AD-experience :). regards, Torsten Thau - -- Torsten Thau, Dipl. Inform. c.a.p.e. IT Labs GbR - Annaberger Str. 240 - D-09125 Chemnitz phone: +49 371 5347 623 cell: +49 176 66 680 680 personal pgp-key: 0x93E0A174 fax: +49 371 5347 625 http://www.cape-it.de -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFHOKJ1vXo8m5PgoXQRAkHwAJ4oJChLcV94lQGNdOmnP/SRslQBtgCfSIM7 q7mZFRaRNodhkZe3yFBl6ko= =sVVJ -----END PGP SIGNATURE-----

I have a problem with my Active Directory configuration, the users' groups only appear in their distinguishedName attribute. I want to patch OTRS so that I can use the distinguishedName for the CustomerID value, however I want to use a substring inside the user's distinguishedName. For example the DN for a user is: CN=(name),OU=(group),DC=(...),DC=(...) I want to grab the "OU" section from that string. I'm wondering where I would make such a patch inside OTRS..? I can't seem to find where I would do this. I know perl so really I am just looking for the location of where this attribute gets retrieved/set. Thanks..! Greg

I hate replying to my own message, but nevermind about this.. I found the spot I had to edit (CustomerUser/LDAP.pm around line 510 or so)... Just a simple $Value =~ s///; did what I needed.. Sorry. Greg -----Original Message----- From: otrs-bounces@otrs.org [mailto:otrs-bounces@otrs.org] On Behalf Of Baker, Greg Sent: Wednesday, November 14, 2007 9:50 AM To: otrs@otrs.org Subject: [otrs] Patching OTRS (LDAP Company) I have a problem with my Active Directory configuration, the users' groups only appear in their distinguishedName attribute. I want to patch OTRS so that I can use the distinguishedName for the CustomerID value, however I want to use a substring inside the user's distinguishedName. For example the DN for a user is: CN=(name),OU=(group),DC=(...),DC=(...) I want to grab the "OU" section from that string. I'm wondering where I would make such a patch inside OTRS..? I can't seem to find where I would do this. I know perl so really I am just looking for the location of where this attribute gets retrieved/set. Thanks..! Greg _______________________________________________ OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs Support or consulting for your OTRS system? =http://www.otrs.com/
participants (3)
-
Baker, Greg
-
Rico Barth
-
Torsten Thau