grouper-users - [grouper-users] RE: General Grouper question SMTP related stuff
Subject: Grouper Users - Open Discussion List
List archive
- From: "Black, Carey M." <>
- To: "Hyzer, Chris" <>, "" <>
- Subject: [grouper-users] RE: General Grouper question SMTP related stuff
- Date: Tue, 6 Jun 2017 13:51:04 +0000
- Accept-language: en-US
- Authentication-results: spf=pass (sender IP is 128.146.163.17) 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:rqPyKxTasWSquvZmdxeD8ASJUNpsv+yvbD5Q0YIujvd0So/mwa67ZBSFt8tkgFKBZ4jH8fUM07OQ6PG/HzFRqsjf+Fk5M7V0HycfjssXmwFySOWkMmbcaMDQUiohAc5ZX0Vk9XzoeWJcGcL5ekGA6ibqtW1aFRrwLxd6KfroEYDOkcu3y/qy+5rOaAlUmTaxe71/IRG0oAnLtsQbhYRuJ6cwxxDUvnZGZuNayH9yK1mOhRj8/MCw/JBi8yRUpf0s8tNLXLv5caolU7FWFSwqPG8p6sLlsxnDVhaP6WAHUmoKiBpIAhPK4w/8U5zsryb1rOt92C2dPc3rUbA5XCmp4ql3RBP0jioMKjg0+3zVhMNtlqJWuBKvqQJizY7Ibo+bN/R+caHcfdwGSmROUd1cVzBYAo64c4cDE/YNMfheooLgp1UOtxy+BQy0Ce/h1zJIgmX50rE50+g5DArLwhYvH8gQv3XUsd77M70eXe6ox6TP1jrDa+lZ1iv+6ITSbxwtv/+BUKl3ccrK1EkjDR3KgUiNqYH8OT6ey+oDs2+e7+V6VOKvjXYqqxl2oji328csjpPGhp4LxVDf6CV224Q1KsOkR05net6kDZ5QtySAOItsQsIuWXxnuCE8x7YbupC7ZDAHxIk7yxPQcfCKfIqF7gjsWeqMOzt1gGxpdKqiixqs8kWs0PDwW8a13VpQqidIncPAum0P2hDP8sSHROVy80S91TuK0g3e6v1LLlw6lafeNZIszb89mYcWvEnMHiL7mkv7gaqKeUo/4een8eLqaaj8qJCGLY97kAT+P7wumsOhBeQ4NRADUXCH9Oq7yLHu81T1TrtNgPA4i6XZt4vVKtoBqq6+Hg9Vzp0s6xGiDzegzdsUh2EHLEhCeBKbkYfmJ03OIPH/Dfe5mVislyprx+zCPr3mBZXNLWLPn6vmfbZ480JcyQwzws5D559MF70NPP3+VlX+udHaFBM0PBG4z/zjBdljzo8eXHiAAq6dMKPcq1+I4ecvLvGXa48RojnyN/sl6+TzgXMnl1IQZq6p3YAKaHyiAPtpPliZbWL2gtgdCWcKohY+TOvyhV2NSz5TYGuyX7oi6TEhEY6mEJzDSZ63gLyaxyq7GpxWZntaClCXD3vkbYSEW/EQaC2MOM9hlCILVaS/R4M7yx6hqRL6mPJbKb+e2jwKuIinnPN1/ezI31lm8Dd0HtaQyUmMVGoyg3sFQTlw0axi9wg1gFiZ1rVgjuYdCMde/ehhUwEmOITawvAgTd3+R0iJKtiTT0u+T8/jHCo8VMkZwtkSblx7Fsn4yB3Pwnz5LaUSkunBLpg9+aGYl1P4Pctsg1OAnuF1hV0vScgJbDf9rqlk6k7eC5OfwBbRrLqjaalJhH2Fz2yE12fb5Ew=
- Spamdiagnosticmetadata: NSPM
- Spamdiagnosticoutput: 1:99
Login to the New UI.
Click on the link in the upper right for your "Logged in as ...".
The header on the user that is displayed includes a "email:" that is blank
for all Subjects.
Sample URL:
.../grouper/grouperUi/app/UiV2Main.index?operation=UiV2Subject.viewSubject&subjectId=ID_VALUE&sourceId=SOURCE_ID_NAME
And when I expand the "More v" section I do not see email or mail in there at
all.
Just in case this is some kind of "Grouper cached data issue" I also looked
up Subjects (users) that I have not used before (recently created in the data
source with known good "mail" value) still no values in the New UI.
The Admin UI does show a "mail" value.
--
Carey Matthew
-----Original Message-----
From: Hyzer, Chris
[mailto:]
Sent: Tuesday, June 6, 2017 8:57 AM
To: Black, Carey M.
<>;
Subject: RE: General Grouper question SMTP related stuff
Sorry, what specifically is not working when looking at the subject?
-----Original Message-----
From: Black, Carey M.
[mailto:]
Sent: Tuesday, June 06, 2017 12:10 AM
To: Hyzer, Chris
<>;
Subject: RE: General Grouper question SMTP related stuff
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 "
"
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
- [grouper-users] General Grouper question SMTP related stuff, Black, Carey M., 06/05/2017
- [grouper-users] RE: General Grouper question SMTP related stuff, Hyzer, Chris, 06/06/2017
- [grouper-users] RE: General Grouper question SMTP related stuff, Black, Carey M., 06/06/2017
- [grouper-users] RE: General Grouper question SMTP related stuff, Hyzer, Chris, 06/06/2017
- [grouper-users] RE: General Grouper question SMTP related stuff, Black, Carey M., 06/06/2017
- [grouper-users] RE: General Grouper question SMTP related stuff, Hyzer, Chris, 06/06/2017
- [grouper-users] RE: General Grouper question SMTP related stuff, Black, Carey M., 06/06/2017
- Message not available
- [grouper-users] Re: General Grouper question SMTP related stuff, Hyzer, Chris, 06/06/2017
- [grouper-users] RE: General Grouper question SMTP related stuff, Hyzer, Chris, 06/06/2017
- [grouper-users] RE: General Grouper question SMTP related stuff, Black, Carey M., 06/06/2017
- [grouper-users] RE: General Grouper question SMTP related stuff, Hyzer, Chris, 06/06/2017
- [grouper-users] RE: General Grouper question SMTP related stuff, Black, Carey M., 06/06/2017
- [grouper-users] RE: General Grouper question SMTP related stuff, Hyzer, Chris, 06/06/2017
Archive powered by MHonArc 2.6.19.