Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ipaserver/dcerpc: unify error processing #682

Closed
wants to merge 2 commits into from

Conversation

abbra
Copy link
Contributor

@abbra abbra commented Apr 3, 2017

Samba error code reporting changes from version to version but we also
did not provide proper input into DCE RPC error processing method we
have.

Unify error processing and add few more fallback entries.

With Samba 4.7 we'll have to change it again because error code
processing for Samba Python modules will change with introduction of
samba.ntstatus and samba.werror modules.

Note that this commit also changes a message returned for error code
-1073741772 (NT_STATUS_OBJECT_NOT_FOUND) because it is more general one.

@abbra
Copy link
Contributor Author

abbra commented Apr 3, 2017

Note: this is WIP, I'm waiting for Sudhir to provide a bug and logs that show the changes he encountered when running existing test suite against Samba 4.6.2.

@MartinBasti MartinBasti changed the title ipserver/dcerpc: unify error processing [WIP] ipserver/dcerpc: unify error processing Apr 3, 2017
@abbra
Copy link
Contributor Author

abbra commented Apr 7, 2017

Updated patches and descriptions to include bug references.

@abbra abbra changed the title [WIP] ipserver/dcerpc: unify error processing ipserver/dcerpc: unify error processing Apr 7, 2017
@MartinBasti
Copy link
Contributor

Please fix issues found by pylint

************* Module ipaserver.plugins.trust
ipaserver/plugins/trust.py:1753: [W0612(unused-variable), trust_fetch_domains.execute] Unused variable 'trust_direction')
ipaserver/plugins/trust.py:1754: [W0612(unused-variable), trust_fetch_domains.execute] Unused variable 'is_nontransitive')

@pvoborni
Copy link
Member

A ticket was created for this PR: https://pagure.io/freeipa/issue/6859

Samba error code reporting changes from version to version but we also
did not provide proper input into DCE RPC error processing method we
have.

Unify error processing and add few more fallback entries.

With Samba 4.7 we'll have to change it again because error code
processing for Samba Python modules will change with introduction of
samba.ntstatus and samba.werror modules.

Note that this commit also changes a message returned for error code
-1073741772 (NT_STATUS_OBJECT_NOT_FOUND) because it is more general one.

Fixes https://pagure.io/freeipa/issue/6859
@abbra abbra changed the title ipserver/dcerpc: unify error processing ipaserver/dcerpc: unify error processing Apr 11, 2017
Since introduction of privilege separation in IPA framework none of the
operations that require direct access to the framework's credentials can
be done. All authentication has to be performed with GSSAPI.

As result, we cannot obtain TGT for HTTP/.. principal with kinit
anymore, so it is better to re-route all types of trust to oddjobd
helper and get rid of casing out two-way trust.

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1438366
@MartinBasti MartinBasti self-assigned this Apr 11, 2017
@MartinBasti
Copy link
Contributor

Code LGTM

@MartinBasti MartinBasti added the ack Pull Request approved, can be merged label Apr 11, 2017
@MartinBasti
Copy link
Contributor

master:

  • aef77b3 ipaserver/dcerpc: unify error processing
  • e560899 trust: always use oddjobd helper for fetching trust information

ipa-4-5:

  • bbb23fc ipaserver/dcerpc: unify error processing
  • 45e1998 trust: always use oddjobd helper for fetching trust information

@MartinBasti MartinBasti added the pushed Pull Request has already been pushed label Apr 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ack Pull Request approved, can be merged pushed Pull Request has already been pushed
Projects
None yet
3 participants