Re: [rt-users] Printing Charts

2013-02-14 Thread April Rosenberg
Thanks.  It took me a bit to get it to work with my directory structure,
but I am now able to print charts.

April

-Original Message-
From: rt-users-boun...@lists.bestpractical.com
[mailto:rt-users-boun...@lists.bestpractical.com] On Behalf Of Thomas
Sibley
Sent: Tuesday, February 12, 2013 1:36 PM
To: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] Printing Charts

On 02/11/2013 06:54 PM, April Rosenberg wrote:
 Good Afternoon,

 I am running 4.0.5 on Ubuntu.  After creating queries and going to the
 chart options.  I cannot print the charts out, it is the title and the
 rest is a blank page in IE and Firefox.  There are no errors in the
 apache logs and the charts appear fine.  This is true of pie and bar
 charts.  I have tried searching, but most info is about display being
 broken as well as printing.  I am using the default template, with a
 change in color on css only.

 Does anyone have any ideas?

The print stylesheet is specifically hiding all content on the Charts
page, but I'm not sure why.  It's a holdover from an older print
stylesheet (before the new one in 4.0.5), and I suspect it's a mistake and
hiding too much by accident.

Try applying this patch:

   curl -s https://github.com/bestpractical/rt/commit/ed77c63.patch \
   | patch -p1 -d /opt/rt4

and then clearing your Mason cache and restarting RT.  You'll need to
clear your browser cache (or force reload the page) as well since it will
aggressively cache the print styles.

I expect the patch above will be in the next release of RT.


--
RT training in Amsterdam, March 20-21:
http://bestpractical.com/services/training.html

Help improve RT by taking our user survey:
https://www.surveymonkey.com/s/N23JW9T


-- 
RT training in Amsterdam, March 20-21: 
http://bestpractical.com/services/training.html

Help improve RT by taking our user survey: 
https://www.surveymonkey.com/s/N23JW9T


[rt-users] Printing Charts

2013-02-11 Thread April Rosenberg
Good Afternoon,



I am running 4.0.5 on Ubuntu.  After creating queries and going to the
chart options.  I cannot print the charts out, it is the title and the rest
is a blank page in IE and Firefox.  There are no errors in the apache logs
and the charts appear fine.  This is true of pie and bar charts.  I have
tried searching, but most info is about display being broken as well as
printing.  I am using the default template, with a change in color on css
only.



Does anyone have any ideas?



April



[image: Yelp!]

*April Rosenberg*
*e:*  apr...@yelp.com  *t:*  415.632.4020
image001.gif

-- 
Help improve RT by taking our user survey: 
https://www.surveymonkey.com/s/N23JW9T

[rt-users] Perl Script to Add/Remove Privileged status

2012-12-07 Thread April Rosenberg
All,



Since I use AD groups to manage rights to queues in RT, (queues are all set
up with group rights, and the helpdesk can add/remove people to AD groups
w/o rights in RT).  I needed to make sure that users that need to be
privileged are and ones that no longer (transferred to a department w/o a
queue) are not.  So I wrote the below perl script it makes sure anyone with
the Own Ticket right on any queue and a list of exceptions are privileged.
I have it set to run once an hour.  I am not the best with perl as I am
just learning it, however I hope this can help someone else.



April



#!/usr/bin/perl -w

use strict;

use warnings;



my @excludedUsers = (root);  # Users who will keep privileged status

my @excludedGroups = (RTAdmin); # Groups of users who will get privileged
status without the own ticket right.



open (LogFile, '/var/log/request-tracker4/Privileged.log');



use lib qw(/usr/local/share/request-tracker4/lib
/usr/share/request-tracker4/lib);

use RT;

use DateTime;



my $date = DateTime-now(time_zone='local');



# Load the config -- at compile-time, so we can adjust lib paths for plugin
packages



BEGIN { RT::LoadConfig(); }



RT::Init();

use RT::Queue;



print LogFile \n;

print LogFile $date-datetime().\n;

print LogFile \n;

my $queues = RT::Queues-new(RT-SystemUser);

$queues-UnLimit;

my @privUsers;

while ( my $queue = $queues-Next ) {

  my $Users = RT::Users-new(RT-SystemUser);

  $Users-WhoHaveRight(

Right   = 'OwnTicket',

Object  = $queue,

IncludeSystemRights = 1,

IncludeSuperUsers   = 1,

  );

  while ( my $User = $Users-Next() ) {

if ( $User-Name ne Nobody ) {

  unless (grep { $User-Name eq $_ } @privUsers ) {

$User-SetPrivileged(1);

print LogFile User, .$User-Name., set as privileged.\n;

push @privUsers, $User-Name;

  }

}

  }

}

foreach my $group (@excludedGroups) {

  my $Groups = RT::Group-new(RT-SystemUser);

  $Groups-LoadUserDefinedGroup( $group );

  my $Users = RT::Users-new(RT-SystemUser);

  $Users-MemberOfGroup( $Groups-id );

  while ( my $User = $Users-Next() ) {

unless (grep { $User-Name eq $_ } @privUsers ) {

  $User-SetPrivileged(1);

  print LogFile User, .$User-Name., set as privileged.\n;

  push @privUsers, $User-Name;

}

  }

}

foreach my $name (@excludedUsers) {

  push @privUsers, $name;

}

my $SuperUsers = RT::Users-new(RT-SystemUser);

$SuperUsers-LimitToPrivileged;

$SuperUsers-UnLimit;

while ( my $User = $SuperUsers-Next() ) {

  unless (grep { $User-Name eq $_ } @privUsers ) {

$User-SetPrivileged(0);

print LogFile User, .$User-Name., removed from privileged.\n;

  }

}



close (LogFile);

exit;





[image: Yelp!]

*April Rosenberg*
*e:*  apr...@yelp.com  *t:*  415.632.4020
image001.gif
We're hiring! http://bestpractical.com/jobs


[rt-users] rtldapimport - Does not remove last person in a group

2012-09-25 Thread April Rosenberg
Good Morning,

I am having some problems with rtldapimport.  I have it run every hour via
a cron job, and it adds users to their groups w/o problem, and mostly
removes them with no problems.  However, it doesn’t remove the last member
in the group.  When I run rtldapimport I get:



Imported 105/110 groups

Processing group rtPayrollQueueAccess

Found existing group rtPayrollQueueAccess to update

RT FieldRT Value - LDAP Value

Description unchanged = Payroll RT Queue Support Access

Nameunchanged = rtPayrollQueueAccess

Processing group membership for rtPayrollQueueAccess



[Tue Sep 25 18:52:01 2012] [warning]: No members found for
rtPayrollQueueAccess in Member_Attr
(/usr/local/share/request-tracker4/plugins/RT-Extension-LDAPImport/lib/RT/Extension/LDAPImport.pm:874)

No members found for rtPayrollQueueAccess in Member_Attr



However, when I browse to the group on the interface, it still lists myself
as a member.  If I remove myself by hand and re-run the import it does not
re-add it.



I haven’t been able to find where other people are having this issue on the
web.  Does anyone have any ideas?  Thanks!



April



[image: Description: Yelp!]

*April Rosenberg*
*e:*  apr...@yelp.com  *t:*  415.632.4020
image001.gif

Final RT training for 2012 in Atlanta, GA - October 23  24
  http://bestpractical.com/training

We're hiring! http://bestpractical.com/jobs


Re: [rt-users] AutoRejectRequest Template not working?

2012-08-20 Thread April Rosenberg
Kevin,

Thanks for pointing me at the right files.  I found the three places mail
is going out.

Sub createUser sends out two of the emails as the unless statements that
call mailError then don't seem to error out of the sub.

The third message is coming from further down in sub
_NoAuthorizedUserFound.

April

-Original Message-
From: rt-users-boun...@lists.bestpractical.com
[mailto:rt-users-boun...@lists.bestpractical.com] On Behalf Of Kevin
Falcone
Sent: Monday, August 20, 2012 7:43 AM
To: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] AutoRejectRequest Template not working?

On Fri, Aug 17, 2012 at 11:27:03AM -0700, April Rosenberg wrote:
I have RT 4.0.5 set up to accept mail and not create new users. I am
using
RT::Authen::ExternalAuth. I have a problem where some of my users are
not using their original
email address to send emails to RT. When they send an email into an
RT monitored address they
get three emails, *Could not load a valid user*, *User could not be
loaded*, and *User could
not be created*. I have added

Set($LookupSenderInExternalDatabase, 1);

Set($SenderMustExistInExternalDatabase, 1);

But I do not think those are relevant to ExternalAuth. I have added
the AutoRejectRequest
Template globally, hoping that it would give my users a more graceful
error message.

These options were removed from the config in
e3d012c1165fbdf5954ecd760c25e8830e01d273
because there was never any code implemented in core to use them.
They've been deleted from the documentation since 3.8.9.

Is there anyone to change the outgoing error messages so that a user
doesn*t get three, and
that the, hopefully, one message they get has more info in it?

I'm not sure why they're getting three messages, I'd expect one.
Unfortunately, most of the error messages are handle in the library code
and are hard to change.  You can look at lib/RT/Interface/Email.pm to get
an idea of what methods you'd need to overlay.

-kevin


[rt-users] AutoRejectRequest Template not working?

2012-08-17 Thread April Rosenberg
All,



I have RT 4.0.5 set up to accept mail and not create new users.  I am using
RT::Authen::ExternalAuth.  I have a problem where some of my users are not
using their original email address to send emails to RT.  When they send an
email into an RT monitored address they get three emails, “Could not load a
valid user”, “User could not be loaded”, and “User could not be created”.
I have added



Set($LookupSenderInExternalDatabase, 1);

Set($SenderMustExistInExternalDatabase, 1);



But I do not think those are relevant to ExternalAuth.  I have added the
AutoRejectRequest Template globally, hoping that it would give my users a
more graceful error message.



Is there anyone to change the outgoing error messages so that a user
doesn’t get three, and that the, hopefully, one message they get has more
info in it?



Anything I have found on this seems to be old, deprecated, or not using
ExternalAuth.  Thanks!



April


Re: [rt-users] Some questions, a few oddities, and some must-haves...

2012-06-29 Thread April Rosenberg
For #2 I actually have a custom field in my queue definitions that I call
Signature which is my first custom field for queues.  I then have:

{$Ticket-QueueObj-FirstCustomFieldValue()}

At the bottom of my autoreply, for correspondence and resolve I use:

Regards,

{$Ticket-OwnerObj-RealName || $Ticket-OwnerObj-Name}
{$Ticket-QueueObj-FirstCustomFieldValue()}


April

-Original Message-
From: rt-users-boun...@lists.bestpractical.com
[mailto:rt-users-boun...@lists.bestpractical.com] On Behalf Of Kevin
Falcone
Sent: Wednesday, June 06, 2012 7:55 PM
To: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] Some questions, a few oddities, and some
must-haves...

On Mon, Jun 04, 2012 at 04:29:01PM -0400, Glenn E. Sieb wrote:
 1) Can I get a spellchecker to work in 4.0.5? We're setting this up
 for some people here who require a spell checker, and Firefox/Chrome's
 built-in will *not* work with RT's ticket body boxes. :-/ If this is
 possible, is there a howto? I've read the wiki, but they all seem to
 be for 3.x.x, not 4.

Firefox and Chrome's spellcheckers work fine.  In fact, I get the
highlighting as I type.  If that doesn't work, hold control when you
right-click to get to your spellchecker menu.

 2) Is there an extension that lets me define a signature for separate
 queues? (It can be only per queue, it doesn't have to be
 per-user.) So, a signature that all emails going out from queueA get,
 queueB has it's own, queueC it's own, etc.

There isn't a feature for this in the message editor, but you could
certainly add queue specific Correspondence templates that contain a
signature.

 3) I run RT 4.0.5 on my home server, and have since version 2. I set
 up 4.0.5 here at work, and I noticed some oddities. The submenu
 disappears on submission of a form. (Screen captures are here:
 http://www.wingfoot.org/gallery/v/Glenn/ges-misc/RT/, pink is the work
 site, brown is the home server) Needless to say, my users are not
 liking this, and really, I'm finding it odd.

 4) Possibly related to #3, when I go to Tickets/New Search, I'll fill
 out the criteria area, and hit Add these terms and search..
 blank results. Every time. And no submenu. (So the menu under the New
 Ticket in button that says Edit Search etc.) If I put the criteria
 in as Add these terms then click Show results in the submenu, I
 get results. Occasionally, I get the submenu. Oddness.
 :-/

There were a few fixes to submenus in 4.0.6.  If you have replication
recipes for 4.0.6, please file a bug with them.

Thanks

-kevin


[rt-users] Show a Queue's description instead of its name...

2012-05-17 Thread April Rosenberg
Good Morning,



I have been setting up some new queue’s in our RT instance as multiple
departments will use this.  I wanted to use names like IT_Helpdesk and
HR_Inbound for my queues, but that is a little unfriendly for my users.  I
was wonder if there was a way to change which name is displayed when the
queue name is displayed, if it can use the description?  I found,
http://www.dice.inf.ed.ac.uk/units/user_support/docs/rt/rt-mods.html#QL1,
but that seems to be about an older build and not complete.  I am using
4.0.5 on Ubuntu Lucid.  Has anyone done this?  Thanks!



April



PS.  Sorry if this is a duplicate, I didn’t get the message through the
list so I was concerned I hadn’t sent it correctly.


[rt-users] Show a Queue's description instead of its name...

2012-05-15 Thread April Rosenberg
Good Morning,



I have been setting up some new queue’s in our RT instance as multiple
departments will use this.  I wanted to use names like IT_Helpdesk and
HR_Inbound for my queues, but that is a little unfriendly for my users.  I
was wonder if there was a way to change which name is displayed when the
queue name is displayed, if it can use the description?  I found,
http://www.dice.inf.ed.ac.uk/units/user_support/docs/rt/rt-mods.html#QL1,
but that seems to be about an older build and not complete.  I am using
4.0.5.  Has anyone done this?  Thanks!



April


[rt-users] (no subject)

2012-02-29 Thread April Rosenberg
Good afternoon,



I am just trying to get RT up and running.  I am getting an odd error while
using fetchmail to grab email from Gmail.  I am running RT 4.0.1 on Ubuntu
10.04.  below are  my fectmailrc file and the fetchmail log file.  I have
daemon commented out so I could run the command by hand to try and
troubleshoot the problem.  I have been searching, but I haven’t found any
information about the DistinctFieldValues field or why it would be causing
problems.  Any help would be greatly appreciated.  Thanks!



April



/etc/fetchmailrc:



#set daemon 60

set invisible

set no bouncemail

set no syslog

set logfile /var/log/fetchmail.log

poll imap.gmail.com protocol IMAP username @.*** password 
mda /usr/bin/rt-mailgate --queue HelpDesk --action correspond --url
http://localhost/rt --debug no keep options ssl





/var/log/fetchmail.log:

RT server error.



The RT server which handled your email did not behave as expected. It

said:



Can't locate object method DistinctFieldValues via package RT::Queues
at /usr/share/request-tracker4/lib/RT/System.pm line 236.



Stack:

  [/usr/share/request-tracker4/lib/RT/System.pm:236]

  [/usr/share/request-tracker4/lib/RT/Interface/Email.pm:1197]

  [/usr/share/request-tracker4/lib/RT/Interface/Email.pm:1410]

  [/usr/share/request-tracker4/html/REST/1.0/NoAuth/mail-gateway:61]



fetchmail: reading message @.***@gmail-imap.l.google.com:1 of 1
(2289 header octets) (1341 body octets) (log message incomplete)fetchmail:
MDA returned nonzero status 75

fetchmail:  not flushed

RT Training Sessions (http://bestpractical.com/services/training.html)
* Boston — March 5  6, 2012

Re: [rt-users] (no subject)

2012-02-29 Thread April Rosenberg
DBIx::SearchBuilder version  required--this is only version 1.56 at -e
line 1.
BEGIN failed--compilation aborted at -e line 1.

Thank you!  I will look at upgrading that!

-Original Message-
From: rt-users-boun...@lists.bestpractical.com
[mailto:rt-users-boun...@lists.bestpractical.com] On Behalf Of Thomas
Sibley
Sent: Wednesday, February 29, 2012 12:49 PM
To: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] (no subject)

On 02/29/2012 03:43 PM, April Rosenberg wrote:
 Can't locate object method DistinctFieldValues via package
 RT::Queues at /usr/share/request-tracker4/lib/RT/System.pm line 236.

This indicates your version of DBIx::SearchBuilder is older than 1.59.
What does:

perl -e 'use DBIx::SearchBuilder '

report?

RT Training Sessions (http://bestpractical.com/services/training.html)
* Boston  March 5  6, 2012

RT Training Sessions (http://bestpractical.com/services/training.html)
* Boston  March 5  6, 2012


Re: [rt-users] (no subject)

2012-02-29 Thread April Rosenberg
That did fix it.  We had built our own 4.0.1 last fall (but the project
was deprioritized) when there wasn't an Ubuntu package yet.  Since we were
having errors (This one and a couple of others) we were looking at making
a 4.0.5 based off the 4.0.4 package.

April

-Original Message-
From: rt-users-boun...@lists.bestpractical.com
[mailto:rt-users-boun...@lists.bestpractical.com] On Behalf Of Thomas
Sibley
Sent: Wednesday, February 29, 2012 1:33 PM
To: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] (no subject)

On 02/29/2012 04:02 PM, April Rosenberg wrote:
 DBIx::SearchBuilder version  required--this is only version 1.56
 at -e line 1.
 BEGIN failed--compilation aborted at -e line 1.

 Thank you!  I will look at upgrading that!

While this is indeed the problem, I'd be concerned about other module
versions too.  What version of the Ubuntu package are you using?

sudo apt-cache policy request-tracker4

How did you install RT?  The Ubuntu package should have made sure
DBIx::SearchBuilder was up to date...

Thomas

RT Training Sessions (http://bestpractical.com/services/training.html)
* Boston  March 5  6, 2012

RT Training Sessions (http://bestpractical.com/services/training.html)
* Boston  March 5  6, 2012


[rt-users] RT-Extension-LDAPImport

2011-10-18 Thread April Rosenberg
Good Afternoon,



I seem to be hitting my head against a problem I am having after updating to
4.0.1.  I have both LDAPImport and ExternalAuth::LDAP installed.  It seems
that I can’t import users who have blanks in some of the fields during the
import, however name and email address are not blank, so the required fields
should be filled in.  There are no errors when run
/usr/local/share/request-tracker4/plugins/RT-Extension-LDAPImport/bin/rtldapimport
--debug but when I run
/usr/local/share/request-tracker4/plugins/RT-Extension-LDAPImport/bin/rtldapimport
--debug --import causes the below error.  Further down is the
RT_SiteConfig.pm sections.



I have tried looking this error up, and I am able to run the query,
(((ObjectCategory=User)(ObjectClass=Person)(mail=*)(!(userAccountControl:1.2.840.113556.1.4.803:=2)))(mail=
apr...@yelp.com)), in the error message w/o problems.  Most other things I
have found on the internet have to do with not being able to connect to LDAP
or info not being in it.



Any help would be hugely appreciated. Thanks!



April



[Tue Oct 18 23:07:48 2011] [critical]:
RT::Authen::ExternalAuth::LDAP::CanonicalizeUserInfo : Search for
(((ObjectCategory=User)(ObjectClass=Person)(mail=*)(!(userAccountControl:1.2.840.113556.1.4.803:=2)))(mail=
apr...@yelp.com))  failed:  LDAP_OPERATIONS_ERROR 1
(/usr/local/share/request-tracker4/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth/LDAP.pm:210)

[Tue Oct 18 23:07:48 2011] [info]:
RT::Authen::ExternalAuth::CanonicalizeUserInfo returning Address1: , City: ,
Country: , Disabled: 0, EmailAddress: apr...@yelp.com, ExternalAuthId:
aprilr, Gecos: aprilr, Name: aprilr, Organization: , Privileged: 0,
RealName: April Rosenberg, State: , WorkPhone: , Zip:
(/usr/local/share/request-tracker4/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth.pm:536)

[Tue Oct 18 23:07:48 2011] [error]: couldn't create user_obj for aprilr:
Could not set user info
(/usr/local/share/request-tracker4/plugins/RT-Extension-LDAPImport/lib/RT/Extension/LDAPImport.pm:866)

couldn't create user_obj for aprilr: Could not set user info



RT_SiteConfig.pm



Set($LDAPHost,'XX');

Set($LDAPUser, 'XX');

Set($LDAPPassword, 'XX');

Set($LDAPBase, 'XX');



Set($LDAPFilter,
'((ObjectCategory=User)(ObjectClass=Person)(mail=*)(!(userAccountControl:1.2.840.113556.1.4.803:=2)))');

Set($LDAPDisabledFilter,
'((ObjectCategory=User)(ObjectClass=Person)(userAccountControl:1.2.840.113556.1.4.803:=2))');



#Attribute in RT = Attribute in LDAP

#(this has changed since version 1, which was the other way around)

Set($LDAPMapping, {Name = 'sAMAccountName',

   EmailAddress = 'mail',

   Organization = 'department',

   RealName = 'cn',

   ExternalAuthId = 'sAMAccountName',

   Gecos = 'sAMAccountName',

   WorkPhone = 'telephoneNumber',

   Address1 = 'physicalDeliveryOfficeName',

   City = 'l',

   State = 'st',

   Zip = 'postalCode',

   Country = 'co'

  });



Set($LDAPSkipAutogeneratedGroup, 1);



Set($LDAPUpdateUsers,1);



Set($ExternalSettings, {   # LDAP SERVICE

'My_LDAP'   =  {

'type'  =  'ldap',

'server'=  $LDAPHost,

'user'  =  $LDAPUser,

'pass'  =  $LDAPPass,

'base'  =  $LDAPBase,

# ALL FILTERS MUST BE VALID LDAP FILTERS ENCASED IN
PARENTHESES!

# YOU **MUST** SPECIFY A filter AND A d_filter!!

#

# The filter to use to match RT-Users

'filter'=  $LDAPFilter,

#

# The filter that will only match disabled users

'd_filter'  =  $LDAPDisabledFilter,

#

'tls'   =  0,

'ssl_version'   =  3,

'net_ldap_args' = [version =  3
],

# Does authentication depend on group membership?
What group name?

#'group' =  'cn=Domain
Users,cn=Users,dc=example,dc=com',

# What is the attribute for the group object that
determines membership?

#'group_attr'=  'member',

## RT ATTRIBUTE MATCHING SECTION

# The list of RT attributes that uniquely identify a
user

# This example shows what you *can* specify.. I
recommend reducing this

# to just

[rt-users] Making autocreated AD users into privileged users

2011-09-07 Thread April Rosenberg
Good Afternoon,



I have been working to figure this out for a while and I am just not sure
what I am not doing wrong and I am unable to find much information on this
on the web.  I am running Request Tracker 3.8.7 on Ubuntu 10.04 with MySQL
5.0.92 and Apache 2.2.14 with mod perl 2.0.4.  I have
RT::Authen::ExternalAuth configured and I am able to send an email as a user
and they are then able to log in and view their ticket.  However, I would
like to set up some of the users as privileged users as they are the queue
managers but they are not showing in the Configuration/Users screen.  I have
Set($AutoCreate, {Privileged = 1}); so I thought I would be able to at
least edit my users, but they are not showing up.  My RTSiteConfig.pm is
below with the personal info obscured.  If anyone can help that would be
greatly appreciated.  Thanks!



April



# This file was generated by running update-rt-siteconfig-3.8.

#

# While local modifications will not be overwritten without permission,

# it is recommended the they are instead placed in

# /etc/request-tracker3.8/RT_SiteConfig.d

#

# Note that modifications to the RT_SiteConfig.d directory won't

# take effect until the update command mentioned above is run again.



# start /etc/request-tracker3.8/RT_SiteConfig.d/40-timezone

# dynamically find out the current timezone

my $zone = UTC;

$zone=`/bin/cat /etc/timezone`

if -f /etc/timezone;

chomp $zone;

Set($Timezone, $zone);

# end   /etc/request-tracker3.8/RT_SiteConfig.d/40-timezone

# start /etc/request-tracker3.8/RT_SiteConfig.d/50-debconf

# THE BASICS:



Set($rtname, 'tickets');

Set($Organization, ' XX ');



Set($CorrespondAddress , ' XX ');

Set($CommentAddress , ' XX ');



Set($WebExternalAuth , '1');

Set($WebFallbackToInternalAuth , '1');

Set($WebExternalGecos , undef);

Set($WebExternalAuto , '1');



Set($MaxAttachmentSize , 1000);



Set($FriendlyFromLineFormat, \%s\ %s);



Set( @Plugins, qw(RT::Authen::ExternalAuth) );



# THE WEBSERVER:



Set($WebPath , /rt);

Set($WebBaseURL , http:// XX );



# end   /etc/request-tracker3.8/RT_SiteConfig.d/50-debconf

# start /etc/request-tracker3.8/RT_SiteConfig.d/51-dbconfig-common

# THE DATABASE:

# generated by dbconfig-common



# map from dbconfig-common database types to their names as known by RT

my %typemap = (

mysql   = 'mysql',

pgsql   = 'Pg',

sqlite3 = 'SQLite',

);



Set($DatabaseType, $typemap{mysql} || UNKNOWN);



Set($DatabaseHost, 'localhost');

Set($DatabasePort, '');



Set($DatabaseUser , ' XX ');

Set($DatabasePassword , ' XX ');



# SQLite needs a special case, since $DatabaseName must be a full pathname

my $dbc_dbname = 'rtdb'; if ( mysql eq sqlite3 ) { Set ($DatabaseName,
'' . '/' . $dbc_dbname); } else { Set ($DatabaseName, $dbc_dbname); }

# end   /etc/request-tracker3.8/RT_SiteConfig.d/51-dbconfig-common

1;

# The order in which the services defined in ExternalSettings

# should be used to authenticate users. User is authenticated

# if successfully confirmed by any service - no more services

# are checked.

Set($ExternalAuthPriority,  [   'My_LDAP' ] );



# The order in which the services defined in ExternalSettings

# should be used to get information about users. This includes

# RealName, Tel numbers etc, but also whether or not the user

# should be considered disabled.

#

# Once user info is found, no more services are checked.

#

# You CANNOT use a SSO cookie for authentication.

Set($ExternalInfoPriority,  [   'My_LDAP' ] );



# If this is set to true, then the relevant packages will

# be loaded to use SSL/TLS connections. At the moment,

# this just means use Net::SSLeay;

Set($ExternalServiceUsesSSLorTLS,0);



# If this is set to 1, then users should be autocreated by RT

# as internal users if they fail to authenticate from an

# external service.

Set($AutoCreateNonExternalUsers,0);

Set($AutoCreate, {Privileged = 1});



# These are the full settings for each external service as a HashOfHashes

# Note that you may have as many external services as you wish. They will

# be checked in the order specified in the Priority directives above.

# e.g.

#Set(ExternalAuthPriority,['My_LDAP']);

#

Set($ExternalSettings,  {   # AN EXAMPLE LDAP SERVICE

'My_LDAP'   =  {


 'type'  =  'ldap',


'server'=  ' XX ',


'user'  =  ' XX ',


'pass'=  ' XX ',


'base'  =  ' XX ',

#

# ALL FILTERS MUST
BE VALID LDAP FILTERS ENCASED IN PARENTHESES!

# YOU **MUST**
SPECIFY A filter AND A d_filter!!

#

# The filter to use
to match 

Re: [rt-users] Making autocreated AD users into privileged users

2011-09-07 Thread April Rosenberg
Thanks for the tip, I hadn't tried searching since I had one user that is
visible.  It is RT::Auth 0.08.  But I am now able to change my users to
privileged, so all is awesome!

April

-Original Message-
From: rt-users-boun...@lists.bestpractical.com
[mailto:rt-users-boun...@lists.bestpractical.com] On Behalf Of Kevin
Falcone
Sent: Wednesday, September 07, 2011 2:56 PM
To: RT-Users@lists.bestpractical.com
Subject: Re: [rt-users] Making autocreated AD users into privileged users

On Wed, Sep 07, 2011 at 02:48:59PM -0700, April Rosenberg wrote:
 I have been working to figure this out for a while and I am just not
 sure what I am not doing wrong and I am unable to find much
 information on this on the web.  I am running Request Tracker 3.8.7 on
 Ubuntu 10.04 with MySQL
 5.0.92 and Apache 2.2.14 with mod perl 2.0.4.  I have
 RT::Authen::ExternalAuth configured and I am able to send an email as
 a user and they are then able to log in and view their ticket.
 However, I would like to set up some of the users as privileged users
 as they are the queue managers but they are not showing in the
 Configuration/Users screen.  I have Set($AutoCreate, {Privileged =
 1}); so I thought I would be able to at least edit my users, but they
 are not showing up.  My RTSiteConfig.pm is below with the personal
 info obscured.  If anyone can help that would be greatly appreciated.
Thanks!

Under Configuration - Users use the search feature.  Unprivileged users
aren't listed.  If your users were being created as Privileged, then they
would show up in the list.  I suggest searching for their email address
for the best chance of success.  I'm not sure what version of
RT-Authen-ExternalAuth you're using, so I can't tell you if AutoCreate
should be working or not in your configuration.

-kevin

RT Training Sessions (http://bestpractical.com/services/training.html)
*  Chicago, IL, USA  September 26  27, 2011
*  San Francisco, CA, USA  October 18  19, 2011
*  Washington DC, USA  October 31  November 1, 2011
*  Melbourne VIC, Australia  November 28  29, 2011
*  Barcelona, Spain  November 28  29, 2011