AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / user-580171

SimonLi's questions

Martin Hope
SimonLi
Asked: 2020-07-31 11:25:19 +0800 CST

从外部 DNS 可见 SAMBA AD DC

  • 0

我已经配置了功能齐全的 SAMBA AD DC 服务器。在 AD 配置过程中,我将 SAMBA_INTERNAL 设置为 DNS 后端。我无法使用“NONE DNS”,它不受支持。

我想在我的本地网络中使用外部(来自 SAMBA)DNS,这对本地网络(世界)外部也是可见的。

在我的外部 DNS 中,我为 SAMBA AD DC 设置了所有需要的 SRV 和 A 记录,并且它们也对本地网络的外部可见。此外,我已经向外部开放了所有需要的端口。

当我尝试将 Windows 计算机添加到本地域时,只能使用定义的 DNS(SAMBA AD DC 即 IP 10.0.0.9)但是如果我不想在 Windows 中指定 DNS 以将计算机添加到域怎么办?我的意思是我还想从本地网络外部添加具有自动定义的 DNS(即 8.8.8.8)的计算机。

如何配置此示例?

PS:错误:DNS名称不存在。(错误代码0x0000232B RCODE_NAME_ERROR)

domain-name-system samba samba4
  • 1 个回答
  • 380 Views
Martin Hope
SimonLi
Asked: 2020-07-20 22:47:09 +0800 CST

在 CentOS 8 中显示失败或错误的 SSH 登录尝试

  • 3

在 CentOS 8 下,我试图查找 SSH 登录失败的尝试。Lastb 返回:

# lastb

btmp begins Thu Jul  9 10:53:49 2020

Aureport 返回一些记录(一个例子是):

# aureport -au -i --failed 

Authentication Report
============================================
# date time acct host term exe success event
============================================
1. 06/25/2020 13:46:36 root 10.10.0.2 ssh /usr/sbin/sshd no 66

当我尝试使用错误凭据登录时,aureport 或 lastb 不显示新记录。我在哪里可以找到失败的 SSH 登录?

centos ssh
  • 2 个回答
  • 5273 Views
Martin Hope
SimonLi
Asked: 2020-07-03 02:19:55 +0800 CST

SAMBA netstat 本地地址 0.0.0.0

  • 1

试图运行 samba AD DC 但我被卡住了。创建域配置后,我定义了 resolv.conf:

cat /etc/resolv.conf
nameserver 10.99.0.30
search example.com

服务运行:

samba-ad-dc.service - Samba Active Directory Domain Controller
   Loaded: loaded (/etc/systemd/system/samba-ad-dc.service; enabled; vendor preset: disabled)
   Active: active (running)

DNS记录的查询似乎很好:

$ host -t SRV _ldap._tcp.example.com.
_ldap._tcp.random.example.com has SRV record 0 100 389 random.example.com.

$ host -t SRV _kerberos._udp.example.com.
_kerberos._udp.random.example.com has SRV record 0 100 88 random.example.com.

$ host -t A random.example.com.
dc1.random.example.com has address 10.99.0.30

当我做netstat时:

netstat -tulpn | grep ":53"
tcp        0      0 0.0.0.0:53              0.0.0.0:*               LISTEN      34599/samba: task[d
tcp6       0      0 :::53                   :::*                    LISTEN      34599/samba: task[d
udp        0      0 0.0.0.0:53              0.0.0.0:*                           34599/samba: task[d
udp        0      0 0.0.0.0:5353            0.0.0.0:*                           745/avahi-daemon: r
udp6       0      0 :::53                   :::*                                34599/samba: task[d
udp6       0      0 :::5353                 :::*                                745/avahi-daemon: r

应该是 netstat 中 DNS(local) 10.99.0.30 的确切 IP 地址中的本地地址,例如 10.99.0.30:53 吗?

当我尝试从 WINDOWS 主机加入 AD 时,我得到了:

- The query was for the SRV record for _ldap._tcp.dc._msdcs.example.com
- The following domain controllers were identified by the query:
  (no Active Directory Domain Controllers found)
- Host (A) or (AAAA) records that map the names of the domain controllers to 
  their IP addresses are missing or contain incorrect addresses.
- Domain controllers registered in DNS are not connected to the network or are not running.

我什至无法通过 ping 解析 example.com。

domain-name-system samba netstat samba4
  • 1 个回答
  • 384 Views
Martin Hope
SimonLi
Asked: 2020-06-30 00:50:43 +0800 CST

Samba-tool ImportError:没有名为 samba.netcmd.main 的模块

  • 0

在 CentOS 8 上安装了最新的 samba(带有所有依赖项)版本 4.12.3。我在 /root/ 目录中获取 samba 并在没有任何选项的情况下制作了 ./configure 并且在 make && make install samba 安装在 /root/samba-4.12.3/ 之后

当我尝试运行时:

/root/samba-4.12.3/bin/samba-tool domain provision --help

我有一个错误:

Traceback (most recent call last):
 File "/root/samba-master/bin/samba-tool", line 33, in <module>
 from samba.netcmd.main import cmd_sambatool
ImportError: No module named samba.netcmd.main

试图导出pythonpath:

export PYTHONPATH=:/root/samba-4.12.3/bin

还使用 echo $PYTHONPATH 测试路径是 /root/samba-4.12.3/bin

可能是什么问题?

samba
  • 1 个回答
  • 1068 Views
Martin Hope
SimonLi
Asked: 2020-06-25 01:53:59 +0800 CST

具有动态 IP 的 FreeIPA 主机

  • 0

我正在尝试使用 FreeIPA 用户登录 Windows。当我创建具有特定 ---ip 地址的 IPA 主机时一切正常,但是如果我的主机(Windows 机器)没有静态 IP 怎么办?我知道在第一次成功登录到 Windows 后,登录凭据存储在本地,但是当我尝试在没有正确 IP 的情况下登录到 Windows 时需要一些时间。你有什么解决办法吗?

redhat freeipa
  • 1 个回答
  • 166 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve