问题标签 [nis]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
2565 浏览

bash - 如何使用 bash 脚本将多行粘贴到文件中?

我正在编写一个脚本,它将使用正确的设置自动配置 NIS 客户端。我正在尝试设置 /etc/nsswitch.conf 文件,我想用我的设置覆盖已经存在的任何内容。现在我的问题是,我该怎么做?如何直接从脚本将大约 20 行设置粘贴到客户端的 nsswitch.conf 文件中?我知道我可以做类似的事情:

但这是一种丑陋的方法,我希望有更好的方法来实现这个目标

0 投票
1 回答
21 浏览

linux - suggestion for receiving tcp settings for a specific service

I have some price subscriptions that require clients to know which tcp server and port to use to get them. For example, for MSFT one might need to connect to 192.168.5.6:4500.

I have been wondering how to best store/retrieve this info so both servers and clients could share the same settings. Some ideas like using dns entries, proxies, yellow pages, or else might work but i'm not 100% sure. Some have suggested to me to use db tables but maybe there is some way to retrieve this with some simple tcp messages to some service out there. Ideally it should work with Window and Linux clients.

What do you guys suggest?

ps. It would be cool to also know of backup server settings in case the primary one is down so querying for MSFT could return a list of settings to use.

0 投票
1 回答
1468 浏览

windows - 如何通过命令行更改或设置 Windows Active Directory 中组的组 ID?

如何从命令行更改现有组的 gidNumber?

该属性称为 gidNumber。

0 投票
0 回答
129 浏览

nsis - 如何使用 NIS 编辑更新 .NET 配置文件

如何使用 HM NIS Edit 编辑/更新 .NET 配置文件?如果有人可以帮助我,我正在寻找一个脚本。请在这方面帮助我。

谢谢!

0 投票
0 回答
447 浏览

ubuntu - Ubuntu 14.04 NIS 客户端连接到 OpenSuse 13.1 NIS 服务器

我整天都在尝试这个,搜索互联网,但我找不到解决方案。

我们正在办公室运行一个使用 OpenSuse 13.1(NIS 和 NFS)的小型服务器,它与所有使用 OpenSuse 的客户端完美配合。由于我不是该发行版的忠实拥护者,因此我尝试切换到 Ubuntu,但我们的 IT 人员无法为此提供任何支持,因此我完全靠自己。

我在设置 NFS 和 NIS 时没有任何问题。在纸上一切正常。yptest 运行没有错误。ypmatch 可以为每个用户匹配密码等。我已经阅读了几十个线程,并尝试过使用 libpam-unix2.so 编辑 pam.d/common-* 文件等方法,但我仍然无法开始工作的是实际登录。

每当我尝试时,我都会遇到身份验证失败。

pam_unix(mdm:auth): 对话失败 pam_succeed_if(mdm:auth): 用户“me”不满足要求“用户组内 nopasswdlogin” pam_unix(mdm:auth): 身份验证失败;登录名= uid=0 euid=0 tty=:20 ruser= rhost= user="me"

两个系统上的加密都是 SHA512。为什么它不起作用?我只是无法理解...

编辑:当然,如果需要,我可以提供更多信息。但我可以保证我已经尝试了所有最明显的方法。etc/shadow /group 和 /passwd 都已正确设置。/etc/nsswitch.conf 被编辑了一些“nis”添加等。

0 投票
2 回答
109 浏览

keystone - 使用 Openstack Keystone 的网络信息系统 (NIS)

有什么方法可以将网络信息系统 (NIS) 与 Openstack Keystone 集成?如果您知道任何在线资源,请告诉我。

0 投票
0 回答
168 浏览

linux - 如何使用错误代码 (1) 修复 NIS (sudo apt-get purge nis)

当我第一次安装 NIS 时,它出现了“E: Sub-process /usr/bin/dpkg returned an error code (1)”问题。

所以我用“sudo rm -rf /var/lib/dpkg/info/nis.*”命令删除了 NIS。
然后使用“sudo apt-get purge nis”命令重新安装。
但它仍然遇到这个问题“E:子进程/usr/bin/dpkg返回错误代码(1)”。
如何解决?需要帮忙!

0 投票
0 回答
84 浏览

perl - Authen::PAM 登录在 Vintela 刷新后不起作用

我有一个 perl 脚本,它从外部进程获取用户名和密码,然后使用 Vintela 进行用户身份验证。一切正常,直到有人强迫 Vintela 刷新它的缓存。缓存刷新后,Authen::PAM 模块返回代码 10,这意味着它找不到用户名。

如果我在 shell 中运行“id $username”命令然后运行脚本,那么该用户的一切都会恢复正常。或者,如果用户 SSH 进入系统,那么 Authen::PAM 可以完美运行。

在生产服务器上,用户不要通过 SSH 连接到服务器,因此在 Vintela 刷新后,用户无法再登录。在对每个用户进行身份验证之前,我不想为每个用户运行“id”命令。有没有办法强制脚本或 PAM 模块查找用户然后对其进行身份验证?

脚本 -

0 投票
1 回答
461 浏览

ldap - 如何使用 LDAP 创建自动挂载映射

我需要使用 ldap 为我们环境中的特定位置创建一个自动挂载地图,因为我们有“ldap+nis”集成设置。我对 ldap+NIS 了解不多,因此需要您的帮助才能理解它...我从 env 示例中获得的 ldif 文件格式如下..

同样,我需要创建以下 auto.master ,我们使用的是 sun ldap

0 投票
1 回答
124 浏览

sudoers - 允许从 nis 共享的组使用 sudo

我试图启用acctadm从 NIS 共享的群组通话以使用 sudo。

结果ypcat gropu看起来像:acctadm:*:1005:god1,god2

尝试 add 后%acctadm ALL=(ALL) ALL+acctadm ALL=(ALL) ALL通过 visudo 并重新启动。当我使用帐户 god1 并尝试sudo echo 123时,我仍然收到错误:god is not in the sudoers file. This incident will be reported.

知道如何解决这个问题吗?