Skip to Content.
Sympa Menu

grouper-users - [grouper-users] RE: General Grouper question SMTP related stuff

Subject: Grouper Users - Open Discussion List

List archive

[grouper-users] RE: General Grouper question SMTP related stuff


Chronological Thread 
  • From: "Black, Carey M." <>
  • To: "Hyzer, Chris" <>, "" <>
  • Subject: [grouper-users] RE: General Grouper question SMTP related stuff
  • Date: Tue, 6 Jun 2017 04:10:13 +0000
  • Accept-language: en-US
  • Authentication-results: spf=pass (sender IP is 128.146.163.16) smtp.mailfrom=osu.edu; internet2.edu; dkim=none (message not signed) header.d=none;internet2.edu; dmarc=pass action=none header.from=osu.edu;
  • Ironport-phdr: 9a23:FpDJ/RNVnkqf3zrjCzkl6mtUPXoX/o7sNwtQ0KIMzox0K/z/o8bcNUDSrc9gkEXOFd2CrakV1KyL4+uwByQp2tWoiDg6aptCVhsI2409vjcLJ4q7M3D9N+PgdCcgHc5PBxdP9nC/NlVJSo6lPwWB6nK94iQPFRrhKAF7Ovr6GpLIj8Swyuu+54Dfbx9GiTe5Y75+NhW7oAbeusQVgIZpN7o8xAbOrnZUYepd2HlmJUiUnxby58ew+IBs/iFNsP8/9MBOTLv3cb0gQbNXEDopPWY15Nb2tRbYVguA+mEcUmQNnRVWBQXO8Qz3UY3wsiv+sep9xTWaMMjrRr06RTiu86FmQwLuhSwaNTA27XvXh9RwgqxFvRyhuxJxzY3aYI6XNfpxYqzTctwBSGpdR8ZcUzBNDp+gY4cRCecKIOZWr5P6p1sLtRayCxShBOf1xTBUhX/6xbAx3vo7HgHcwgMhH88FvnPOoNn7KawfVvu6zK3SwjrfbPNawyrx5JbGfx06pvGMRq9wfdDPxkYyCgPIl1OdopHrMTOS0+QCqWmb7+x4WOK3jG4nsxxxojy1yccwlIbJnZ8VxUvG9Spn3Ik1Oca4SFN+Yd6hCpRQrSGbO5FrTcMlRWxjpSU0yqUetJKlZicG1IkryhvCZ/CaboSF5xzjWemNLTtkgX9ldqywihm9/EWlz+DxVNe43VRSoiZYjNXBtWoB2wHc58WGUPdx40is1SyB2g3S8u1EL147mKnHJ5Mkx7M9loYcvljNHiLzhkn7g66beVgh9+Wn6+nqYLvrq5qAOIBvkQ7xKKIjkdGlD+siKAgBRW2b9Py81LL9+U35R61HgOUqn6ferJzWO90XqLOhDQNIy4oj7A2wACm83NQfgHkHMElKeBWaj4jvJl7COuj4De24g1Swjjhk2+zGPrzmApXLNHTDl6rhfap5605bzwozzspT6I5TCrEEOP7zW0nxu8LEDhIhLQC72frrBMh4248DRG6DH6qUMK3dvFOU+u4iJueMa5EatTvyLvUo4vzjgWE7lFMFeKmmx5oXaHS2HvR8JEWZZGLhjcwFEWgQogU+T/bmhECcXTNdfHuyWLk85iwhBI24EIjDW5ihgKad0yejAp1WemdGB0iDEXfycIWERu8MZzyIIsN4jzwETqauS5U61Ry1sA/6yqFnLvbP+iEGr57j1d515/HNmhEo8zx7Edid33+XQ25qg2wIWmx+4Kcq62xs2FqZleBTg+ZZDpYbs/ZCUhYoOIT0zvdxTc3qVwTHONqFVQDiCp+pGzYsVt8rhsIVblxmM9Skkh3Z2Se2WfkYm6HBTMg76KXBx3XrYttmxmzd/Kgnk1Q8RMZTbyurirMppCbJAIuc2W+dnq2pMew31TTA5S+miyDG6EtcWQVzF/yfBlgYfVaQoNjksBCRB4SyAKgqZ1MSgfWJLbFHP4Xk
  • Spamdiagnosticmetadata: NSPM
  • Spamdiagnosticoutput: 1:99

Chris,

Thanks for the push in the right direction. I think we are getting somewhere.

Your snip did not work in GSH for me.
"
if (StringUtils.isBlank(emailAttributeName)) { System.out.println("Cant find
email attribute name");} return System.out.println("Email address: " +
subject.getAttributeValue(emailAttributeName);
// Error: unable to evaluate command: Sourced file: inline evaluation of:
``if (StringUtils.isBlank(emailAttributeName)) { System.out.println("Cant
find ema . . . '' : Attempt to resolve method: isBlank() on undefined
variable or class name: StringUtils
"
--> I have no idea why "StringUtils" is not resolvable. ( I was running this
from the API bin dir. Missing dependency jar ?)



So I modified it a bit...
"
rootSession = GrouperSession.startRootSession();
me = findSubject("black.123");
String emailAttributeName =
GrouperEmailUtils.emailAttributeNameForSource(me.getSourceId());
if (emailAttributeName == null) { System.out.println("Can not find email
attribute name"); }else{System.out.println("emailAttributeName: " +
emailAttributeName);}
"
And was rewarded with this output:

emailAttributeName: mail



So it looks like the source think's that "mail" should be the attribute for
the email address for the user. (Which is correct for the data source.)

Oh... and look at that... If I look at the Admin UI I see the value in it's
table for my Subject. Interesting....

URL:
.../grouper/populateSubjectSummary.do?sourceId=MYSOURCE&returnToLinkKey=subject.action.return-results&nameOverride=&returnTo=%2FdoSearchSubjects.do&name=MY_NAME&typeName=person&description=MYDESCRIPTION&descriptionOverride=&id=MY_SUBJECT_UNIQUEID&subjectType=person&subjectId=
MY_SUBJECT_UNIQUEID
"
mail

"


Maybe it is a bug in the "New UI"?
Subject Diagnostics is working
Admin UI is working.
New UI not working when looking at the subject.


--
Carey Matthew


-----Original Message-----
From: Hyzer, Chris
[mailto:]

Sent: Monday, June 5, 2017 10:48 PM
To: Black, Carey M.
<>;


Subject: RE: General Grouper question SMTP related stuff


...snip...

> 2) On a related note...
> I am still not seeing "email" values on subjects that are resolved by
> a GrouperJndiSourceAdapter.
> I did add these settings. (found kind of randomly in various
> WIKI/list archives) but still no love.
> "
> <init-param>
> <param-name>Email_AttributeType</param-name>
> <param-value>mail</param-value>
> </init-param>
> <init-param>
> <param-name>emailAttributeName</param-name>
> <param-value>mail</param-value>
> </init-param>
> .....
> <attribute>mail</attribute>
> "
>
> The subject API diagnostics page does show this:
>
> "
> Subject attribute 'mail' has 1 value:
> ''
> - with subject.getAttributeValue("mail") "

What does this print?

String emailAttributeName =
GrouperEmailUtils.emailAttributeNameForSource(subject.getSourceId());
if (StringUtils.isBlank(emailAttributeName)) {
System.out.println("Cant find email attribute name");
}
return System.out.println("Email address: " +
subject.getAttributeValue(emailAttributeName);


>
>
> So the SubjectAPI can retrieve the attribute but it is not "using it".
> ( Is this a bug or am I doing something wrong? Could it be an bug in
> the UI? )


First it needs to know which attribute is the email attribute

>
> Attached is screen capture of the header of my Subject being displayed in
> the UI.
>
> Thanks in advance.
>
>
-----Original Message-----
From:


[mailto:]
On Behalf Of Black, Carey M.
Sent: Monday, June 05, 2017 9:47 AM
To:

Subject: [grouper-users] General Grouper question SMTP related stuff

1) Is there a list of the emails that can be generated by the Grouper
components?
What triggers each email?
Who the email is sent to?
How to modify the text? (localization for branding/signing)
etc.. etc...

Basically I would like to know what should be expected after the SMTP server
is configured in the UI/WS/(other components?)





2) On a related note...
I am still not seeing "email" values on subjects that are resolved by
a GrouperJndiSourceAdapter.
I did add these settings. (found kind of randomly in various
WIKI/list archives) but still no love.
"
<init-param>
<param-name>Email_AttributeType</param-name>
<param-value>mail</param-value>
</init-param>
<init-param>
<param-name>emailAttributeName</param-name>
<param-value>mail</param-value>
</init-param>
.....
<attribute>mail</attribute>
"

The subject API diagnostics page does show this:

"
Subject attribute 'mail' has 1 value:
''
- with subject.getAttributeValue("mail") "


So the SubjectAPI can retrieve the attribute but it is not "using it". ( Is
this a bug or am I doing something wrong? Could it be an bug in the UI? )

Attached is screen capture of the header of my Subject being displayed in the
UI.

Thanks in advance.

--
Carey Matthew




Archive powered by MHonArc 2.6.19.

Top of Page