我无法在Windows中使用use net
命令安装远程文件夹。从LDAP/SAMBA server
中的以下调试消息中,我们可以看到LDAP搜索了uid=user1
的某些属性。
但无法找到任何结果(nentries=0)
,因为user1没有在LDAP中定义所有这些属性(请参阅user1的以下配置文件)。我的问题是:这些搜索属性来自哪里?如何将它们减少到只能在搜索过程中找到user1所需的内容?
调试消息:
Mar 23 17:59:23 myserver slapd [2530]:conn = 1059 op = 2 SRCH base =& quot; dc = myserver,dc = mydomain,dc = com& quot; scope = 2 deref = 0 filter =& quot;(& amp;(uid = user1)(objectClass = sambaSamAccount))& quot; 3月23日17:59:23 myserver slapd [2530]:conn = 1059 OP = 2 SRCH ATTR = UID uidNumber的gidNumber homeDirectory的sambaPwdLastSet sambaPwdCanChange sambaPwdMustChange sambaLogonTime sambaLogoffTime sambaKickoffTime CN SN的displayName sambaHomeDrive sambaHomePath sambaLogonScript sambaProfilePath描述sambaUserWorkstations sambaSID sambaPrimaryGroupSID sambaLMPassword sambaNTPassword sambaDomainName objectClass的sambaAcctFlags sambaMungedDial sambaBadPasswordCount sambaBadPasswordTime sambaPasswordHistory modifyTimestamp sambaLogonHours modifyTimestamp uidNumber的gidNumber homeDirectory的登陆shell的gecos
3月23日17:59:23 myserver slapd [2530]:conn = 1059 op = 2 SEARCH RESULT tag = 101 err = 32 nentries = 0 text =
LDAP中的User1配置文件:
user1,users,mydomain.com
dn:uid = user1,ou = users,dc = mydomain,dc = com
objectClass:top
object
objectClass:person
objectClass :organizationalPerson
objectClass:posixAccount
objectClass:shadowAccount
objectClass:inetOrgPerson
objectClass:sambaSamAccount
cn:user1
sn:user1
uid: user1
uidNumber:1550
gidNumber:513
homeDirectory:/ home / user1
loginShell:/ bin / bash
gecos:系统用户
givenName:user1
sambaLogonTime:0
sambaLogoffTime:2147483647
sambaKickoffTime:2147483647
sambaPwdCanChange:0
displayName:user1
sambaSID:PDC-SRV是:S-1- 5-21-1685200757-3848118661-4202727344-1001
sambaLMP密码:FC26CDB2863917C1AAD3B435B51404EE
sambaAcctFlags:[U]
sambaNTPassword:00B2C85DDFBD8CC81602D6FC7340EB0B
sambaPwdLastSet:1458723076
sambaPwdMustChange:1462611076
userPassword :: e1NTSEF9SWpGTlFwbXY0RTJzaGNHUDdybTNWYlVuZHdsYWNWQks =
shadowLastChange:16883
shadowMax:45
感谢任何帮助。
扎克。