gitlab 将管理员权限移交给ldap账户_CDPDC中Atlas集成FreeIPA的LDAP认证

文档编写目的Cloudera从CM6.3版本开始,引入了Red Hat IdM来做整个集群的认证,Red Hat IdM对应的软件为FreeIPA,在本文中描述如何使用FreeIPA来做CDP-DC集群的认证。关于FreeIPA服务器搭建参考<使用FreeIPA对Linux用户权限统一管理>。之前的文章包括<使用FreeIPA为CDP DC7.1集群部署安全>,<CDP-DC中为CM集成FreeIPA提供的LDAP认证>,<在CDP-DC中Ranger集成FreeIPA的LDAP用户>,<CDP-DC中Hue集成FreeIPA的LDAP认证>,。本篇文章主要介绍如何为CDP-DC平台上的Atlas集成FreeIPA提供的LDAP用户。内容概述1) 测试环境描述2) FreeIPA的LDAP介绍3) Atlas集成LDAP4) Atlas集成验证5) 总结测试环境1) RedHat7.72) CM和Cloudera Runtime版本为7.1.13) FreeIPA版本为4.6.6前置条件1) FreeIPA已安装且正常使用2) CDP-DC集群已搭建完毕且正常使用,已经启用FreeIPA提供的Kerberos认证.测试环境描述FreeIPA集群已安装完毕。查看配置文件从IPA 3.0开始,我们已经为/etc/openldap/ldap.conf配置了一些默认值:
[ec2-user@ip-10-0-0-170 ~]$ cat /etc/openldap/ldap.conf# File modified by ipa-client-install# We do not want to break your existing configuration, hence:#   URI, BASE, TLS_CACERT and SASL_MECH#   have been added if they were not set.#   In case any of them were set, a comment has been inserted and#   "# CONF_NAME modified by IPA" added to the line above.# To use IPA server with openLDAP tools, please comment out your# existing configuration for these options and uncomment the# corresponding lines generated by IPA.## LDAP Defaults## See ldap.conf(5) for details# This file should be world readable but not world writable.#BASE    dc=example,dc=com#URI    ldap://ldap.example.com ldap://ldap-master.example.com:666#SIZELIMIT    12#TIMELIMIT    15#DEREF        neverTLS_CACERTDIR    /etc/openldap/certs# Turning this off breaks GSSAPI used with krb5 when rdns = falseSASL_NOCANON    onURI ldaps://ip-10-0-0-170.ap-southeast-1.compute.internalBASE dc=ap-southeast-1,dc=compute,dc=internalTLS_CACERT /etc/ipa/ca.crtSASL_MECH GSSAPI[ec2-user@ip-10-0-0-170 ~]$
b6e89e4f9f088667c7f80810b2dffb63.png设置这些默认值意味着您无需将太多选项传递给ldapsearch之类的工具。搜索更加容易:
$ ldapsearch -x uid=admin
而不是:
$ ldapsearch -x -h ipa.example.com  -b dc=example,dc=com uid=admin
[ec2-user@ip-10-0-0-170 ~]$ ldapsearch -x uid=admin# extended LDIF## LDAPv3# base  (default) with scope subtree# filter: uid=admin# requesting: ALL## admin, users, compat, ap-southeast-1.compute.internaldn: uid=admin,cn=users,cn=compat,dc=ap-southeast-1,dc=compute,dc=internalobjectClass: posixAccountobjectClass: ipaOverrideTargetobjectClass: topgecos: Administratorcn: AdministratoruidNumber: 1376400000gidNumber: 1376400000loginShell: /bin/bashhomeDirectory: /home/adminipaAnchorUUID:: OklQQTphcC1zb3V0aGVhc3QtMS5jb21wdXRlLmludGVybmFsOmJmYTI4NGI4LWE5MzktMTFlYS1iZmEzLTA2YTdiNzk2MzQwYQ==uid: admin# admin, users, accounts, ap-southeast-1.compute.internaldn: uid=admin,cn=users,cn=accounts,dc=ap-southeast-1,dc=compute,dc=internalobjectClass: topobjectClass: personobjectClass: posixaccountobjectClass: krbprincipalauxobjectClass: krbticketpolicyauxobjectClass: inetuserobjectClass: ipaobjectobjectClass: ipasshuserobjectClass: ipaSshGroupOfPubKeysuid: admincn: Administratorsn: AdministratoruidNumber: 1376400000gidNumber: 1376400000homeDirectory: /home/adminloginShell: /bin/bashgecos: Administrator# search resultsearch: 2result: 0 Success# numResponses: 3# numEntries: 2[ec2-user@ip-10-0-0-170 ~]$
3a45ec52701b5fbbd54ac4af7306cc7e.pngAtlas与LDAP集成使用管理员用户登录Cloudera Manager,进入“群集”->Atlas->“配置”界面ac6c9e5ff65dc99b08eb2a44525feb58.png2.通过配置下方的搜索器搜索LDAP,可以看到涉及到Atlas Server部分d1b49d3e588348491b6772b85f9ca32f.png3.配置外部身份验证,具体配置参数如下:
参数名描述
Atlas.ldap.urlldaps://ip-10-0-0-170.ap-southeast-1.compute.internal:636配置FreeIPA的LDAP URL
Atlas.ldap.bind.dnuid=admin,cn=users,cn=accounts,dc=ap-southeast-1,dc=compute,dc=internal配置用于搜索LDAP的管理员账号
Atlas.ldap.bind.passwordcloudera管理员账号的密码
Atlas.ldap.user.dnpatternuid={0},cn=users,cn=accounts,dc=ap-southeast-1,dc=compute,dc=internal
Atlas.ldap.user.searchfilteruid={0}LDAP用户搜索过滤器。仅在身份验证方法为LDAP时使用。
Atlas.ldap.group.searchbasecn= groups,cn=accounts,dc=ap-southeast-1,dc=compute,dc=internal
Atlas.ldap.group.searchfiltermember={0}
Atlas.ldap.group.roleattributecn
Atlas.ldap.base.dncn=accounts,dc=ap-southeast-1,dc=compute,dc=internal
Atlas.ldap.referralfollow 如果将多个LDAP服务器配置为返回结果的连续引用,则设置为遵循。如果不应该引用,则设置为忽略(默认)。当将此参数设置为throw时,在抛出ReferralException之前,所有常规条目都首先在枚举中返回。
Atlas.usersync.source.impl.classorg.apache.Atlas.ldapusersync.process.LdapUserGroupBuilder分别对应Unix用户同步,文件系统同步,和LDAP用户同步。这些选择LDAP
Atlas.usersync.ldap.urlldaps://ip-10-0-0-170.ap-southeast-1.compute.internal:636
Atlas.usersync.ldap.binddnuid=admin,cn=users,cn=accounts,dc=ap-southeast-1,dc=compute,dc=internal
Atlas.usersync.ldap.ldapbindpasswordcloudera
Atlas.usersync.ldap.deltasyncAtlas Usersync Default Group复选
Atlas.usersync.ldap.searchBasecn=accounts,dc=ap-southeast-1,dc=compute,dc=internal
Atlas.usersync.ldap.user.searchbasecn=users,cn=accounts,dc=ap-southeast-1,dc=compute,dc=internal
Atlas.usersync.ldap.user.searchscopesub用户的搜索范围。值“ base”表示仅应考虑在Atlas.usersync.ldap.user.searchbase中指定为搜索基础的条目。“one”表示仅应考虑在Atlas.usersync.ldap.user.searchbase中指定为搜索基础的条目的直接子级。“ Sub”表示应该考虑在Atlas.usersync.ldap.user.searchbase中指定为搜索基础的条目及其所有子级的任何深度。
Atlas.usersync.ldap.user.searchfilter(|(memberOf=cn=ipausers,cn= groups,cn=accounts,dc=ap-southeast-1,dc=compute,dc=internal))
Atlas.usersync.ldap.user.nameattributeuid
Atlas.usersync.ldap.user.nameattributeignore
Atlas.usersync.group.usermapsyncenabledAtlas Usersync Default Group复选
Atlas.usersync.user.searchenabledAtlas Usersync Default Group复选
Atlas.usersync.group.searchenabledAtlas Usersync Default Group复选
Atlas.authentication.methodLDAP登录到Atlas Admin的身份验证方法。
c70ac2ab74c1a6107274de54246f2d5f.png43e9901b412861a6bd0c9e9cec7f391d.png4.完成上述配置后,保存更改,重启Atlas服务应用配置fc714af8cfa03146d8a6258a09109379.png以上完成Atlas与FreeIPA的LDAP的集成。Atlas用户同步通过Cloudera Manager-> 群集 -> Atlas->Atlas Web UI,点击Atlas Web UI,跳转到对应的页面。44cf858ae4c92e664999b9fc197e7aba.png使用系统配置的admin用户和使用FreeIPA中的admin用户都可以登录到atlas,结果相同。d30e52258cf58cba8d766179a53a089c.png使用FreeIPA中的其他ldap用户superuser登录atlas,正常登陆。caf5eb07e6d10def14d9ea96b01a4dd3.png总结提供CM将Atlas集成FreeIPA的LDAP,这个整个管控管理系统可以使用一套用户管理体系,减少了用户同步的维护操作。

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/431749.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

emwin edit控制的输入长度小数点怎么处理_变频器学习,变频器主电路与控制回路学习...

一、变频器主电路的接线流程1、当我们拿到变频器&#xff0c;挤压变频器两侧凹槽&#xff0c;打开上盖&#xff0c;取下挡线板&#xff0c;变频器的R, S, T端子接电源线&#xff0c;U, V, W端子接电机线&#xff0c;地线符号处接地线。2、我们将电源线的黄、绿、红按照顺序接到…

linux 安全审计功能,数据库安全审计在数据安全中的功能

导读在数据安全治理过程中&#xff0c;首先通过数据资产梳理确定敏感数据的存储位置和使用情况&#xff0c;从而制定有效的数据安全管理制度和规范一. 数据安全治理稽核在数据安全治理过程中&#xff0c;首先通过数据资产梳理确定敏感数据的存储位置和使用情况&#xff0c;从而…

python识别图片上的文字_Python如何识别图片中的文字 【转】

Python如何识别图片中的文字&#xff0c;这里给个案例并附上详细步骤&#xff1a;模块包的安装&#xff1a; 1、安装PIL&#xff1a;pip install Pillow 2、安装pytesser3&#xff1a;pip install pytesser3 3、安装pytesseract&#xff1a;pip install pytesseract 4、安装aut…

[LeetCode-JAVA] Remove Linked List Elements

题目&#xff1a; Remove all elements from a linked list of integers that have value val. ExampleGiven: 1 --> 2 --> 6 --> 3 --> 4 --> 5 --> 6, val 6Return: 1 --> 2 --> 3 --> 4 --> 5 思路&#xff1a;设置前置指针&#xff0c;并随…

win10电脑桌面透明便签_在win10电脑桌面上使用工作跟进提醒办公软件可用哪个便签软件?...

每天在开展工作之前&#xff0c;您会列一个详细的计划清单吗&#xff1f;很多人为了避免工作中出现躁动不安的情绪&#xff0c;会提前制定工作跟进计划表&#xff0c;将每日的每项工作一条条记录好&#xff0c;按照计划有目的地来完成。由于在日常工作中&#xff0c;电脑是办公…

c语言 strcpy作用,c语言中strcpy的用法

c语言中strcpy的用法的用法你知道吗&#xff1f;下面小编就跟你们详细介绍下c语言中strcpy的用法的用法&#xff0c;希望对你们有用。c语言中strcpy的用法的用法如下&#xff1a;strcpy原型声明&#xff1a;extern char *strcpy(char* dest, const char *src);头文件&#xff1…

python array函数_Python 中的range()函数与array()函数

我们在Python中存在一个非常好用的range()与array()函数&#xff0c;下面作用法简要介绍。 一、range()函数 >>> range(1,10)   ——>不包括10 [1, 2, 3, 4, 5, 6, 7, 8, 9]>>>range(1,10,2)  ——>1到10&#xff0c;间隔为2(不包括10) [1, 3, 5, …

ajax封装调用

封装的ajax&#xff1a; function ajaxJson(url,data,callfun){$.ajax({type:"POST",url:url,data:data,dataType:json,success:callfun,error:function(){$(.modal-body).html(参数丢失&#xff0c;请重新操作一次);$(#myModal).modal(show);},});}使用实例&#xf…

c++源码矢量图形编辑器_下一代代码编辑器的设想

在通过各种编辑工具使用各类编程语言进行开发的过程中&#xff0c;我们会被大量噪音分心。举个例子我们为了美观性&#xff0c;为了代码格式和对齐&#xff0c;我们会大量的插入/删除Space、Tab和Enter。对于一些同层级的操作&#xff0c;我们可能会手工对齐它。举一个极端的例…

c语言inline不起作用,C语言inline内联函数学习小结

//inline(内联)函数&#xff1a;将普通的函数定义为inline函数&#xff0c;可以避免普通函数入栈出栈的开销&#xff0c;它是将函数内的代码直接粘贴到调用处。除此之外&#xff0c;它和普通函数无异。//要成为inline函数必须具备以下几点&#xff1a;//1、函数代码很短&#x…

python数据挖掘主要特点_python数据挖掘(从数据集中抽取特征)

大多数数据挖掘算法都依赖于数值或类别型特征&#xff0c;从数据集中抽取数值和类别型特征&#xff0c;并选出最佳特征。 特征可用于建模&#xff0c; 模型以机器挖掘算法能够理解的近似的方式来表示现实 特征选择的另一个优点在于&#xff1a;降低真实世界的复杂度&#xff0c…

php_mysql注入load_file()IIS配置文件获取

php_mysql注入load_file()IIS配置文件获取先看一个注入点&#xff1a; http://www. .cn/news_detail.php?newsid-1unionselect1,2,3,4,5,6,concat(database(),0x5c,user(),0x5c,version()),8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27得到回显&#xff1a;fli…

layui 鼠标移入变为小手_游戏技术上不去?看看外设选对没!鼠标篇

古有“人靠衣服&#xff0c;马靠鞍&#xff0c;先看长相&#xff0c;再看穿”的说法&#xff0c;现在在游戏里也有“外设选的好&#xff0c;游戏输不了&#xff01;”这种言论。虽然这种说法过于绝对&#xff0c;但是一款好的外设&#xff0c;确实可以增加我们胜利的概率。今天…

python分支语句_Python中分支语句与循环语句实例详解

前言 本篇博文介绍一下Python中的if条件语句、while循环语句、for in循环语句以及break和continue控制关键字。 分支的基本语法 if 条件表达式&#xff1a; 语句1 语句2 语句3 ...... 条件表达式就是计算结果必须为布尔值的表达式 表达式后面的冒号不能少 注意if后面的出现的语…

用c语言编程减法计算,求用C编个大数加减法运算程序

该楼层疑似违规已被系统折叠 隐藏此楼查看此楼只写过加法的&#xff0c;杭电的A B Problem (II)(AC)&#xff1a;#include #include #include #define N 3000int main(void){int n, i, j, k, p, q, a, b, t, up;char s[N];scanf("%d ", &n);for (i 0; i < n…

creator图片循环显示_江淮宣传车厂家价格 图片 配置

国六 江淮宣传车配置&#xff1a;整车型号:CLW5040XXCH6整车尺寸:5995*2190*2970【底盘配置】轴距:3365发动机:全柴120马力排量:2.0L轮胎:7.00R16其它:助力&#xff0c;空调&#xff0c;电动门窗&#xff0c;中控锁&#xff0c;ABS&#xff0c;气刹江淮康铃H5宣传车图片江淮宣传…

BZOJ 3479: [Usaco2014 Mar]Watering the Fields( MST )

MST...一开始没注意-1结果就WA了... ----------------------------------------------------------------------------#include<cstdio>#include<cstring>#include<vector>#include<cmath>#include<algorithm>#include<iostream>#define r…

python字符串格式化_Python3 字符串格式化

字符串的格式化方法分为两种&#xff0c;分别为占位符(%)和format方式。占位符方式在Python2.x中用的比较广泛&#xff0c;随着Python3.x的使用越来越广&#xff0c;format方式使用的更加广泛。 一 占位符(%)%d 实例(Python3.0)&#xff1a; age 29 print("my age is %d&…

垂直串联六关节机器人调试手册_不止下棋能赢你!新型协作机器人样样精通

重庆网络广播电视台记者 余韬2019中国国际智能产业博览会上&#xff0c;各具特色的智能制造装备和机器人纷纷亮相。其中一款能和人下象棋的机器人吸引了大批观众的目光&#xff0c;大家都抢着要跟机器人“一决高下”。“机械手上有视觉辨识系统&#xff0c;识别出放象棋的位置之…

蓝桥杯c语言a组2015,2015第七届蓝桥杯决赛C语言A组--穿越雷区(DFS)

X星的坦克战车很奇怪&#xff0c;它必须交替地穿越正能量辐射区和负能量辐射区才能保持正常运转&#xff0c;否则将报废。某坦克需要从A区到B区去(A&#xff0c;B区本身是安全区&#xff0c;没有正能量或负能量特征)&#xff0c;怎样走才能路径最短&#xff1f;已知的地图是一个…