Browsed by
Tag: Active Directory

How many users are in your AD Group?

How many users are in your AD Group?

Simple command which will count how many users are in your Active Directory group. This will require administrative privileges. In PowerShell run: Import-Module ActiveDirectory (get-aduser -filter {memberof -recursivematch “CN=Staff,OU=Groups,DC=bargent,DC=com”}).count

TWiki Sidebar With LDAP Authentication

TWiki Sidebar With LDAP Authentication

TWiki allows you to create personal sidebars so the user can pin pages however with Active Directory Apache Authentication the username is all lowercase when Twiki imports it. Personal Sidebar requires the page name to be a Wiki Word. When a user clicks to create their sidebar it creates a file called wbargentLeftBar.txt; as Perl is case sensitive it looks for a file called WbargentLeftBar. ln -s /srv/www/twiki/data/Main/wbargentLeftBar.txt /srv/www/twiki/data/Main/WbargentLeftBar.txt This command creates a symlink to the correct location.