Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Windows 2008 uses Linux LDAP authentication

2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

For the sake of data security, the company put the linux server on the subnet, but it is not convenient for linux to view the documents. Then the leader said that a windows is specially used to view documents.

Online to find the next pGina can be used for windows LDAP authentication. Because AD is not in that subnet, LDAP authentication using linux is the only way to install it.

Directly set up a windows 2008 virtual machine. Install pGina in it. Open the software.

1: check the options related to LDAP. I ticked Gateway because I have to operate the group. Then click configure.

2: you can directly change the address and base of ldap.

3: click Gateway. My side is set to automatically add to the remote Desktop user group as long as you log in. And then save.

4: remember to change the authentication order.

5: now you can enter the relevant account to test it. If LDAP is green, it will be fine. At first, if it's not inside,

If you use this account, maybe Local Machine is red. Never mind。

6: now remote login to this server is like this. To some completion.

After the authentication is done, consider that the documents are all on Linux NFS, and then install the NFS client, Windows 2008

Just add the file service role directly.

In order to automatically mount NFS after logging in to the system. I wrote the script in BAT before, but it didn't come out. It was always wrong.

I can't help it. I wrote one in golang.

Package mainimport ("os", "os/exec", "fmt", "bufio", "strings", "time") func main () {conf: = make (map [string] string) user: = os.Getenv ("USERNAME") / / the relevant NFS server information is stored directly in the following file. F, err: = os.Open (`c:\ Windows\ auto.nfs`) if err! = nil {fmt.Println ("Open Config File ERROR") os.Exit (1)} defer f.Close () rd: = bufio.NewScanner (f) for rd.Scan () {trim: = strings.TrimSpace (rd.Text ()) split: = strings.Split (trim) `\`) confess [split [len (split)-1]] = trim} if _, exist: = conf [user] Exist {for iVRO; I

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report