DistinguishedName attribute missing from OU properties>attribute editor - active-directory

As the title says, I used to be able to go into Active Directory (ADUC) and right-click any OU, go to properties, then attribute editor and find the DistinguishedName attribute for the DN - but DistinguishedName is no longer in the list of attributes (I have advanced features enabled).
I know how to find the DN in PowerShell so it's not a problem (and they definitely have a DN...), I'm just confused as to why it's randomly missing from attribute editor when it used to always be there. I'm not sure if our sysadmin had messed with our AD schema recently or not, but I can't imagine that would randomly cause certain attributes to disappear from attribute editor in ADUC.
Any ideas or questions I should ask the sysadmin?

The only way this could happen is if "Show only writable attributes" is selected in the "Filter" menu, since distinguishedName is not writable.

Related

When you are typing a SQL Query, how to modify dropdowns

So, when you are typing your SQL query in SSMS, you will often be offered the little dropdown which will offer suggestions, like tables, columns, builtin functions, etc.
Is there a way to change an option so that it only shows columns?
No.
I think you are referring to configuring Intellisense of SSMS, and as per the details on Microsoft documentation, we have limited options to configure and unfortunatly I don't see an option to restrict only columns names in the drop-down.
To modify Transact-SQL IntelliSense options
On the Tools menu, click Options.
Expand Text Editor, expand Transact-SQL, and then click IntelliSense.
Clear the check boxes for the IntelliSense options that you do not want.
To change the script size at which IntelliSense features are disabled, select a size from the Maximum script size list.
To change the casing applied to function names in completion lists, select a casing specification from the Casing for built-in
function names list.
Click OK.
I don't think you can do as exactly as you want.
However, you can do some customized setting for the IntelliSense as the instruction below from Microsoft documentation.
To modify Transact-SQL IntelliSense options
On the Tools menu, click Options.
Expand Text Editor, expand Transact-SQL, and then click
IntelliSense.
Clear the check boxes for the IntelliSense options that you do not
want.
To change the script size at which IntelliSense features are
disabled, select a size from the Maximum script size list.
To change the casing applied to function names in completion lists,
select a casing specification from the Casing for built-in function
names list.
Click OK.

How to find out who applied a label to a version in clearcase

In Clearcase, is there a way to find out who applied a label to a version of file? I.e. who did the mklabel. desc shows who checked in the file and the labels that are on it, but the user who did the mklabel is not necessarily the same one who did the ci. A label report shows who created the label initially. An annotated report doesn't give what I need either.
I believe you could try and check cleartool lshistory:
cleartool lshist -minor yourFile
That event should be recorded there.
The event_ccase does include amongst the event tracked:
Attach or remove an attribute, label, hyperlink, or trigger.

Opening RDLC Layout in Visual Studio shows <<expr>> instead of value

When I open a report from Dynamics NAV 2013 in Visual Web Developer 2010, every text box shows a field that looks like
<<Expr>>
Where << and >> are the french Guillemet characters. I find this rather difficult because I have to analyze the properties of each text box, if I am looking for a particular field.
For example in this picture, how do I know which field is the Customer Name, Phone Number or VAT Registration No?
Is there any way to configure Visual Web Developer to expand the Expression like it was in Visual Studio 2008 with NAV 6.0?
Preferably I would like to either see a label instead of the generic Expr or just the old Fields!Some_random_field.Value like it was in Visual Studio 2008.
Ah, another feature of NAV & RDLC :)
You'll find that the Expr text appears when an expression reaches a certain "complexity" -- e.g. from just a field;
=Fields!TotalText.Value
to
=(Fields!TotalText.Value)
The fields in the header are usually always Expr as the values are passed using GetData and SetData (and remain that way from NAV 2009 reports). While this limitation was somewhat removed in NAV 2013, you can only put static values in the header -- they won't change across pages which is useless for multiple SO's or Customers for example.
There isn't a way to show it in the properties box, however the quickest way seems to be to select the field, Right Click, "Expression".
I'd suggest giving the textbox a name other than TextBox to make it easier to identify fields (e.g. "SalesHeaderNo");
So after a bit of research I have found another solution. There is a View Element called the Document Outline [Ctrl+Alt+T] which shows a tree like structure of the whole report. When ever you click on an item in your report, the corresponding item in the Document Outline is selected and vice versa. This is quite useful to keep a better overview over your report and to quickly navigate between the different items.
The only annoying thing is that it also shows empty text boxes, so in a sparsely populated table, you will have a lot of textbox123 items in the outline. It doesn't seem there is a way to filter these out.

SSRS BIDS Expression to pick visibility based on AD GROUPS

I have a box with the text 'Dill Down Facility Available' (see screenshot)
When the report is run I only want certain people to see this box.
The people I want to see this box are contained in 19 different ADGROUPS
There will be others who run this, but I need them to see everything bar the yellow box.
If I right click the box and go to:
TextBoxProperties > Visibility > Show or hide based on an expression,
I am able to enter an expression.
The one ive written in the screenshot allows me to pick 1 individuals AD name in the following format:
DOMAINNAME\ADNAME
However, if I put an ADGROUP name instead of the ADNAME, it does not work, and instead everyone can see the yellow box.
As the expression contains
User!UserID
I believe this may be stopping my ADGROUP name working as its looking for a USER, although this would not explain why it then allows anyone to see this box.
Can anyone provide the expression to allow either:
a) 1 group name
b) multiple group names
Thanks.
SSRS does not have this functionality built in, you'll need to use a Custom Assembly and reference it in your project.
See: http://support.microsoft.com/kb/920769

Access 2007, Textbox search box like the Facebook name search box on the top right

so basically I have an AddCompany Form, where theres a textbox [CompanyName], i want to type a new company name in there, but meanwhile check if theres an already existing one.
So for example,say i want to type Microsoft, when i type M, the textbox shows whole bunch of other names with M, and then keeps going until I type finish typing microsoft. Basically jsut how the facebook search box works.
How do i implement this on Microsoft Access 2007?? could it be in the on dirty event/on change/On key down event???
please enlighten me!!
Thank you very much!!!
A much simpler version of the same thing can be done with the Access wizards. If you turn on the form wizards in form design and click the Combo Box button and point to a location in the header of your form, you'll automatically get a choice to create a combo box that will look up a record that matches something listed in the dropdown list.
However, keep these things in mind:
it works only when you've bound your form to an entire table (which is not recommended for large recordsets)
the code it creates is horrendously BAD.
There are a number of ways to solve this problem. If you're happy binding your form to the entire table, bookmark navigation (as with the code created by the wizard) will be fine. However, I recommend you use this code instead of the wizard code (assumes the combo box has a bound column with the PK ID of the record you're trying to find):
Private Sub MyComboBox_AfterUpdate()
If IsNull(Me!MyComboBox) Then Exit Sub
With Me.RecordsetClone
.FindFirst "[MyID]=" & Me!MyCombBox
If Not .NoMatch Then
If Me.Dirty Then Me.Dirty = False
Me.Bookmark = .Bookmark
End If
End With
End Sub
The combo box would need to use a SQL rowsource, and it would be something like:
SELECT CompanyID, CompanyName FROM Company ORDER BY CompanyName
And you'd define the combo box to have 2 columns, the first one the bound column, and you'd set the width for the first column to 0. The wizard walk you through doing this and set it up for you. The only thing it does wrong is write really bad code to do so.
Now, if you're not searching for a unique value, it gets more complicated, and you might want to use a different approach. Suppose you have a form that displays people and you want to see the ones for a particular company. In that case, you might want to filter by CompanyName. In that case, instead of doing a Find operation as outlined above, you might want to apply a filter. In that case the AfterUpdate event of your combo box would be something like this:
Private Sub MyComboBox_AfterUpdate()
If IsNull(Me!MyComboBox) Then Exit Sub
Me.Filter = "[CompanyName]=" & Chr(34) & Me!MyComboBox & Chr(34)
Me.FilterOn = True
End Sub
Now, in that case, your combo box would have but one column, with the company name and no hidden ID field, so it's somewhat different.
I don't like programming this kind of filtering as it's provided by the Access UI (you can right click on the CompanyName field and in the shortcut menu that pops up, type in the company name you want to filter for, including wildcards, ? and *). Also, it can get confusing when you try to filter when there's already a filter in place. If you're viewing just CitiCorp and then you filter by JP Morgan Chase, you won't get anything.
Instead, I'll tend to change the Recordsource of the form instead of applying a filter. This means each search will give you a new resultset and is the most efficient approach. It does make things a little bit more complicated in terms of returning to your original starting point, but in a properly-designed app, you should probably be presenting only subsets of data to the users in the first place, so the problem this approach "causes" is one that you'd need to resolve to build a proper and efficient user interface that retrieves only the data that the user really needs.
In general, this feature is called auto-completion (I've also heard find-as-you-type). There is an article giving an example of how to do this in Access on this page.
The forms in Access have event handler functions. So couldn't you use autocompletion code added to these functions for this functionality? I found a book on Google Books which discusses this.
I can think of the following code which would need to be added to the event handler function:
1. SQL to find existing potential matches
2. Code generated drop-down box to display potential matches

Resources